2005/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

'IT > mssql' 카테고리의 다른 글

유용한 sp 모음  (0) 2005/09/01
MSSQL Reference  (0) 2005/09/01
The SQL Server Dev Team @ Tech Ed 2005  (0) 2005/08/10
EM에서 권한이 없는 DB보이지 않게하기  (0) 2005/05/14
소유자를 dbo로 변경  (0) 2005/04/04
sp_MS_marksystemobject  (0) 2005/04/04
유용한 DBCC명령어들  (0) 2005/04/04
SET XACT_ABORT  (0) 2004/11/21
Posted by 형준군