IT/mssql2005/04/04 14:43

DBCC CACHESTATS: Displays information about the object currently in the buffer cache, such as hit rates, compiled objects and plans, etc. Note in the sample results below that each of these SQL Server objects can be cached in the buffer cache of SQL Server.

Example:

DBCC CACHESTATS

Sample Results (abbreviated):

Object Name Hit Ratio
------------ -------------

Proc 0.86420054765378507
Prepared 0.99988494930394334
Adhoc 0.93237136647793051
ReplProc 0.0
Trigger 0.99843452831887947
Cursor 0.42319205924058612
Exec Cxt 0.65279111666076906
View 0.95740334726893905
Default 0.60895011346896522
UsrTab 0.94985969576133511
SysTab 0.0
Check 0.67021276595744683
Rule 0.0
Summary 0.80056155581812771


more..


가끔 왜 문서화 안해놓은 DBCC쓸이 있는지 궁금할때가있다. 설마 자기네들만 쓸라고 :)



추가:
dbcc dbreindexall('pubs')

모든 인덱스를 재구성한다. 흐. 테스트환경에서나 써먹을 수 있겠군.



It's From
http://www.sql-server-performance.com/dbcc_commands.asp
Posted by 형준군