The database consistency checker (dbcc) provides commands for checking the logical and physical consistency of a database.
Page linkage and data pointers at both the page level and the row level using checkstorage or checktable and checkdb
Page allocation using checkstorage, checkalloc, checkverify, tablealloc, textalloc, and indexalloc
For consistency within and between the system tables in a database with checkcatalog
dbcc checkstorage stores the results of checks in the dbccdb database. You can print reports from dbccdb using the dbcc stored procedures.
As part of regular database maintenance—the integrity of the internal structures of a database depends upon the system administrator or database owner running database consistency checks on a regular basis.
To determine the extent of possible damage after a system error has occurred.
Before backing up a database for additional confidence in the integrity of the backup.
If you suspect that a database is damaged. For example, if using a particular table generates the message “Table corrupt,” you can use dbcc to determine if other tables in the database are also damaged.
If you are using Component Integration Services, there are additional dbcc commands you can use for remote databases. See the Component Integration Services Users Guide.