Generates a report that highlights the changes in I/O statistics and faults that took place between two dbcc operations.
sp_dbcc_differentialreport [dbname [, objectname]], [db_op] [, "date1" [, "date2"]]
sp_dbcc_differentialreport master, sysprocedures, checkstorage, "05/01/97", "05/04/97"
sp_dbcc_differentialreport generates a report that highlights the changes in I/O statistics and faults that occurred between two dbcc operations. It compares counter values reported from two instances of dbcc checkstorage. Only the values that have been changed are reported.
If only one date is specified, the results of the dbcc checkstorage operation selected by the specified date are compared to the results of the dbcc checkstorage operation immediately preceding the selected operation.
If no dates are specified, the results of last two dbcc checkstorage operations are compared.
If sp_dbcc_differentialreport returns a number for object_name, it means the object was dropped after the dbcc checkstorage operation completed.
If no changes occurred between the specified operations, sp_dbcc_differentialreport does not generate a report.
See also dbcc in Reference Manual: Commands.
The permission checks for sp_dbcc_differentialreport 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 specified database can run sp_dbcc_differentialreport. |