遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

查看数据库内存占用

SET TRAN ISOLATION LEVEL READ UNCOMMITTED
SELECT
ISNULL(DB_NAME(database_id), 'ResourceDb') AS DatabaseName
, CAST(COUNT(row_count) * 8.0 / (1024.0) AS DECIMAL(28,2))
AS [Size (MB)]
FROM sys.dm_os_buffer_descriptors
GROUP BY database_id
ORDER BY DatabaseName
 
 
 
SELECT * FROM sys.dm_os_wait_stats

posted on 2013-03-22 08:29  遗忘海岸  阅读(3082)  评论(0编辑  收藏  举报