Finding Out DirtyPages in the Databases.

SELECT db_name(database_id) AS 'Database',count(page_id) AS 'Dirty Pages'

FROM sys.dm_os_buffer_descriptors

WHERE is_modified =1

GROUP BY db_name(database_id)

ORDER BY count(page_id) DESC

Comments

Popular posts from this blog

Always On FailOver Events

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"

Rule "Not Clustered o the Cluster Service is up and online. " FAILED, The machine is clustered but the cluster is not online.