Checks for consistency in and between system tables in the specified database in SQL Server
Checks for consistency in and between system tables in the specified database.
Syntax:
DBCC CHECKCATALOG ('database_name') [ WITH NO_INFOMSGS ]
Remarks
DBCC CHECKCATALOG checks that every data type in syscolumns has a matching entry in systypes and that every table and view in sysobjects has at least one column in syscolumns.
Example-- Check the current database.
DBCC CHECKCATALOG
GO
-- Check the pubs database.
DBCC CHECKCATALOG ('pubs')