Checks user tables for indexes marked as suspect during recovery following a sort order change.
sp_indsuspect [tab_name]
is the name of the user table to be checked.
Checks the table newaccts for indexes marked as suspect:
sp_indsuspect newaccts
sp_indsuspect with no parameter creates a list of all tables in the current database that have indexes that need to be rebuilt as a result of a sort order change. With a tab_name parameter, sp_indsuspect checks the specified table for indexes marked as suspect during recovery following a sort order change.
Use sp_indsuspect to list all suspect indexes. The table owner or a System Administrator can use dbcc reindex to check the integrity of the listed indexes and to rebuild them if necessary.
Any user can execute sp_indsuspect.
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 |
|
Commands dbcc