Generates a report covering fault statistics for the dbcc checkstorage operations performed for the specified object in the target database on the specified date.The report lists the tables and indexes in order.
sp_dbcc_faultreport [report_type [, dbname [, objectname [, date [, hard_only [, exclusion_mode[, exclusion_faults [, exclusion_tables [, exclusion_combo [, display_recommendations [, opid [,fault_type_in]]]]]]]]]]]]
When you specify the date parameter, be certain that the time you enter is later than the date of the operation. sp_dbcc_faultreport cannot report faults that occur later than the time you enter in this parameter.
ignore – ignores the persistent exclusion list and uses the temporary exclusion list, if one is provided (type, varchar).
extend – applies the temporary exclusion list as well as the persistent exclusion list (type, varchar).
sp_dbcc_faultreport "short"
Database Name : sybsystemprocs Table Name Index Type Code Description Page Number -------------- ------ --------- ------------------- ----------- sysprocedures 0 100031 page not allocated 5702 sysprocedures 1 100031 page not allocated 14151 syslogs 0 100022 chain start error 24315 syslogs 0 100031 page not allocated 24315
sp_dbcc_faultreport "long"
Generating 'Fault Report' for object sysprocedures in database sybsystemprocs. Type Code: 100031; Soft fault, possibly spurious Page reached by the chain is not allocated. page id: 14151 page header: 0x00003747000037880000374600000005000648B803EF0001000103FE0080000F Header for 14151, next 14216, previous 14150, id = 5:1 time stamp = 0x0001000648B8, next row = 1007, level = 0 free offset = 1022, minlen = 15, status = 128(0x0080) . . .
7/25/2000 9:58instead of
7/25/2000 9:58:0:190the report generates faults only up to 9:58, not after it. You could use 9:59 if you do not want to enter the exact time the operation ends:
sp_dbcc_faultreport "short", NULL, NULL, "07/25/00 9:59"
In this case, the report generates faults up to 9:59.
sp_dbcc_faultreport short, mydb, @hard_only = 1
sp_dbcc_faultreport @dbname = my_db, @display_recommendations = 1
sp_dbcc_faultreport @dbname = my_db
sp_dbcc_faultreport @dbname = 'my_db', @exclusion_mode = 'ignore'
sp_dbcc_faultreport @dbname = 'my_db', @exclusion_mode = 'extend', @exclusion_faults = '100036'
sp_dbcc_faultreport @dbname = 'my_db', @exclusion_mode = 'extend', @exclusion_tables = 'tab'
sp_dbcc_faultreport @dbname = 'my_db', @exclusion_mode = 'ignore', @exclusion_faults = '100036', @exclusion_tables = 'tab'
sp_dbcc_faultreport @dbname = 'my_db', @exclusion_mode = 'ignore', @exclusion_combo ='mytable:100002, tab:100035'
sp_dbcc_faultreport long, mydb, @fault_type_in = 100029
sp_dbcc_faultreport short, mydb, @opid = 5
sp_dbcc_faultreport generates a report that shows all faults for the specified object in the target database.
sp_placeobject to make an object that has existing allocations put new allocations on a new segment.
sp_dropsegment to remove a segment from a fragment that contains allocations of an object assigned to that segment.
print "removing 100028 errors from dbcc_faults table" delete dbcc_faults where type_code = 100028
If sp_dbcc_faultreport returns a number for object_name, it means the object was dropped after the dbcc checkstorage operation completed.
dbcc in Reference Manual: Commands
type_code in the System Administration Guide for information on the fault ID and on the fault status.
The permission checks for sp_dbcc_faultreport differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be the database owner of dbccdb (or dbccalt), or have the report checkstorage privilege on the specified database. |
Disabled | With granular permissions disabled, any valid user for the database name specified can run sp_dbcc_faultreport. |