Created
January 30, 2011 22:34
-
-
Save jacobhackl/803346 to your computer and use it in GitHub Desktop.
Quick sql server check for memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec sp_configure | |
SELECT | |
( CASE WHEN ( [is_modified] = 1 ) THEN 'Dirty' ELSE 'Clean' END ) AS 'Page State' , | |
( CASE WHEN ( [database_id] = 32767 ) THEN 'Resource Database' ELSE DB_NAME ( database_id ) END ) AS 'Database Name' , | |
COUNT (*) AS 'Page Count' | |
FROM sys . dm_os_buffer_descriptors | |
GROUP BY [database_id] , [is_modified] | |
ORDER BY [database_id] , [is_modified] ; | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment