标签:
可以通过监视SQLServer缓冲池的数据库使用的数据总量来监视内存使用情况
1 SELECT COUNT(*) * 8 / 1024 AS ‘Cached Size (MB)‘, 2 CASE database_id 3 WHEN 32767 THEN ‘ResourceDb‘ 4 ELSE DB_NAME(database_id) 5 END AS ‘Database‘ 6 FROM sys.dm_os_buffer_descriptors 7 GROUP BY DB_NAME(database_id), database_id 8 ORDER BY ‘Cached Size (MB)‘ DESC
标签:
原文地址:http://www.cnblogs.com/fanzf/p/5762004.html