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.

See also

System procedures sp_forceonline_object