Generates a summary report on the specified database.
sp_dbcc_summaryreport [dbname [, date [, op_name [, display_recommendations]]]]
sp_dbcc_summaryreport
DBCC Operation : checkstorage Database Name Start time End Time Operation ID Hard Faults Soft Faults Text Columns Abort Count User Name ------------------ -------------------- ----------- ------------ ----------- ----------- ------------ ----------- ------------------ sybsystemprocs 05/11/1999 14:53:11 14:53:32:163 1 0 0 0 0 sa sybsystemprocs 05/11/1999 14:55:06 14:55:29:200 2 0 0 0 0 sa sybsystemprocs 05/11/1999 14:56:10 14:56:27:750 3 0 0 0 0 sa DBCC Operation : checkverify Database Name Start time End Time Operation ID Hard Faults Soft Faults User Name ------------------ -------------------- ----------- ------------ -------------- --------------- --------------------- sybsystemprocs 05/11/1999 14:55:29 14:55:29:310 2 0 0 sa
sp_dbcc_summaryreport "testdb"
DBCC Operation : checkstorage Database Name Start time End Time Operation ID Hard Faults Soft Faults Text Columns Abort Count User Name --------------- -------------------- ------------ ------------ ----------- ----------- ------------ ----------- ---------------- testdb 05/11/1999 14:55:29 14:55:49:903 1 0 0 0 0 sa testdb 05/11/1999 14:55:50 14:56:9:546 2 0 0 0 0 sa testdb 05/11/1999 14:56:28 14:56:40:666 3 0 0 0 0 sa
1> sp_dbcc_summaryreport null, null, "checkverify" 2> go
DBCC Operation : checkverify Database Name Start time End Time Operation ID Run Srl Table Name Table Id Hard Faults Soft Faults User Name -------------- -------------------- ------------- ------------ ------- ------------ ----------- ----------- ------------ ---------------- testdb 08/31/2004 11:06:11 11:6:11:370 3 1 NULL NULL 0 0 sa (1 row affected)
sp_dbcc_summaryreport sybsystemprocs, null, "checkstorage"
DBCC Operation : checkstorage Database Name Start time End Time Operation ID Hard Faults Soft Faults Text Columns Abort Count User Name --------------- -------------------- ------------ ------------ ----------- ----------- ------------ ----------- --------- sybsystemprocs 05/11/1999 14:53:11 14:53:32:163 1 0 0 0 0 sa sybsystemprocs 05/11/1999 14:55:06 14:55:29:200 2 0 0 0 0 sa sybsystemprocs 05/11/1999 14:56:10 14:56:27:750 3 0 0 0 0 sa
sp_dbcc_summaryreport @dbname = my_db, @display_recommendations = 1
sp_dbcc_summaryreport generates a summary report of checkstorage or checkverify operations, or both, on the specified database.
The report indicates the name of the database that was checked, the start and end time of the dbcc checkstorage run and the number of soft and hard faults found.
The “Operation ID” column contains a number that identifies the results of each dbcc checkstorage operation on a given database at a specific time. The number provided in the report comes from the opid column of the dbcc_operation_log table. See the System Administration Guide for more information.
The “Text Columns” column shows the number of non-null text columns found by dbcc checkstorage during the run.
The “Abort Count” column shows the number of tables that contained errors, which caused dbcc checkstorage to abort the check on the table. For details on the errors, run sp_dbcc_faultreport.
See also dbcc in Reference Manual: Commands.
The permission checks for sp_dbcc_summaryreport 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_summaryreport. |