dbcc checkstorage stores the results in the dbccdb database. You can print a variety of reports from this database. For details, see “dbcc checkstorage”.
The output of most other dbcc commands includes information that identifies the objects being checked and error messages that indicate any problem, the command finds in the object. When you run dbcc tablealloc and dbcc indexalloc with fix, the output also indicates the repairs that the command makes.
The following example shows dbcc tablealloc output for a table with an allocation error:
dbcc tablealloc(table5)
Information from sysindexes about the object being checked: TABLE: table5 OBJID = 144003544 INDID=0 FIRST=337 ROOT=2587 SORT=0 Error message: Msg 7939, Level 22, State 1: Line 2: Table Corrupt: The entry is missing from the OAM for object id 144003544 indid 0 for allocation page 2560. Message indicating that the error has been corrected: The missing OAM entry has been inserted. Data level: 0. 67 Data Pages in 9 extents. dbcc report on page allocation: TOTAL # of extents = 9 Alloc page 256 (# of extent=1 used pages=8 ref pages=8) EXTID:560 (Alloc page: 512) is initialized. Extent follows: NEXT=0 PREV=0 OBJID=144003544 ALLOC=0xff DEALL=0x0 INDID=0 STATUS=0x0 Alloc page 512 (# of extent=2 used pages=8 ref pages=8) Page 864 allocated (Alloc page: 768 Extent ID: 864 Alloc mask: 0x1) Page 865 allocated (Alloc page: 768 Extent ID: 864 Alloc mask: 0x3) Page 866 allocated (Alloc page: 768 Extent ID: 864 Alloc mask: 0x7) Page 867 allocated (Alloc page: 768 Extent ID: 864 Alloc mask: 0xf) Page 868 allocated (Alloc page: 768 Extent ID: 864 Alloc mask: 0x1f) Page 869 allocated (Alloc page: 768 Extent ID: 864 Alloc mask: 0x3f) Page 870 allocated (Alloc page: 768 Extent ID: 864 Alloc mask: 0x7f) Page 871 allocated (Alloc page: 768 Extent ID: 864 Alloc mask: 0xff) Alloc page 768 (# of extent=1 used pages=8 ref pages=8) Alloc page 1024 (# of extent=1 used pages=8 ref pages=8) Alloc page 1280 (# of extent=1 used pages=8 ref pages=8) Alloc page 1536 (# of extent=1 used pages=8 ref pages=8) Alloc page 1792 (# of extent=1 used pages=8 ref pages=8) Alloc page 2048 (# of extent=1 used pages=8 ref pages=8) (Other output deleted.) Information on resources used: Statistical information for this run follows: Total # of pages read = 68 Total # of pages found cache = 68 Total # of physical reads = 0 Total # of saved I/O = 0 Message printed on completion of dbcc command: DBCC execution completed. If DBCC printed error messages, contact a user with System Administrator (SA) role.