sp_dbcc_differentialreport

Generates a report that highlights the changes in I/O statistics and faults that took place between two dbcc operations.

Syntax

sp_dbcc_differentialreport [dbname [, objectname]], 
	[db_op] [, "date1" [, "date2"]]

Parameters

Examples

Usage

There are additional considerations when using sp_dbcc_differentialreport:
  • 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.

Permissions

The permission checks for sp_dbcc_differentialreport differ based on your granular permissions settings.

SettingDescription
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.

Related reference
sp_dbcc_fullreport
sp_dbcc_statisticsreport
sp_dbcc_summaryreport
sp_dbcc_updateconfig