Microsoft® SQL Server® 2008 Internals
by Paul Randal Kalen Delaney Kimberly Tripp, and Conor Cunningham
Consistency-Checking Commands Other Than DBCC CHECKDB
In this section, I explain what each of the DBCC CHECK. . . commands does. Historically, there has been much confusion about what all the different consistency-checking DBCC commands do, which ones should be performed, and in what order. DBCC CHECKDB includes the functionality of all DBCC CHECK. . . commands except DBCC CHECKIDENT and DBCC CHECKCONSTRAINTS.
DBCC CHECKALLOC
DBCC CHECKALLOC performs the following:
Primitive system-catalog consistency checks
Allocation consistency checks on the database
It uses a database snapshot by default and has the same options as for DBCC CHECKDB, except for the following:
PHYSICAL_ONLY
REPAIR_REBUILD
DATA_PURITY
None of these options make sense for allocation consistency ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access