笔记317 查看性能计数器 2013-7-11

笔记317 查看性能计数器 2013-7-11

1 --查看性能计数器 2013-7-11
2 SELECT * FROM sys.dm_os_performance_counters
3 WHERE ([instance_name] = '' OR [instance_name] = '_Total' AND
4 [object_name] LIKE '%Buffer Manager%' AND [counter_name] IN('Buffer cache hit ratio'))
5 --来取Buffer cache hit ratio的值。

 

posted @ 2013-08-04 21:42 桦仔 阅读(...) 评论(...) 编辑 收藏