sp_dbcc_differentialreport

Description

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

dbname

specifies the name of the database. If you do not specify a dbname, the report contains information on all databases in dbccdb..dbcc_operation_log.

objectname

specifies the name of the table or index for which you want the report generated. If object_name is not specified, statistics on all objects in the target database are reported.

db_op

specifies the source of the data to be used for the report. The only value is checkstorage. The report is generated on the data specified by db_op on date1 and date2 for the specified object in the target database. If dates are not specified, the last two operations of the type db_op are compared.

date1

specifies the first date of a dbcc checkstorage operation to be compared.

date2

specifies the last date of a dbcc checkstorage operation to be compared.

Examples

Example 1

sp_dbcc_differentialreport master, sysprocedures, checkstorage, "05/01/97", "05/04/97"

Generates a report that shows the changes in I/O statistics and faults that occurred in the sysprocedures table between May 1, 1997 and May 4, 1997

Usage

Permissions

Any user can run sp_dbcc_differentialreport.

See also

Commands dbcc

dbcc stored procedures sp_dbcc_fullreport, sp_dbcc_statisticsreport, sp_dbcc_summaryreport, sp_dbcc_updateconfig