sp_listsuspect_object

Description

Lists all indexes in a database that are currently offline because of corruption detected on recovery.

Syntax

sp_listsuspect_object [dbname]

Parameters

dbname

is the name of the database.

Examples

Example 1

Lists the suspect indexes in the current database:

sp_listsuspect_object

Example 2

Lists the suspect indexes in the pubs2 database:

sp_listsuspect_object pubs2

Usage

Permissions

Any user can execute sp_listsuspect_object. Permission checks do not differ based on the granular permissions settings.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

See also

Documents See the System Administration Guide for more information on recovery fault isolation.

System procedures sp_forceonline_object