DBCC UPDATEUSAGE
DBCC UPDATEUSAGE: 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 UPDATEUSAGE ( { database_name | database_id | 0 } [ , { table_name | table_id | view_name | view_id } [ , { index_name | index_id } ] ] ) [ WITH [ NO_INFOMSGS ] [ , ] [ COUNT_ROWS ] ]
Work example
A space report conflicts with allocation metadata for one database object.
Capture the discrepancy, choose the narrowest supported scope, and schedule the corrective scan.
Check your work Reported page counts agree with allocation evidence after the update.
Open Microsoft Learn for full syntax, permissions, and details for your version.