DBCC SQLPERF
DBCC SQLPERF: administrative check or maintenance
What changes
- Input
- database, table, index, cache or server state named in the command
- Output or change
- messages or result sets; maintenance forms change storage, caches or metadata
Syntax at a glance
DBCC SQLPERF ( [ LOGSPACE ] | [ "sys.dm_os_latch_stats" , CLEAR ] | [ "sys.dm_os_wait_stats" , CLEAR ] ) [ WITH NO_INFOMSGS ]
Work example
An incident review needs log-space use by database.
Compare the output with recovery model, active transaction, log backup schedule, and disk capacity.
Check your work The log use percentage and reuse wait identify a supported next diagnostic step.
Open Microsoft Learn for full syntax, permissions, and details for your version.