The sp_iqcheckdb Stored Procedure

If you suspect problems in your database, try running the stored procedure sp_iqcheckdb.

This procedure reads every database page from disk into memory and does various consistency checks. However, depending on the size of your database, the check can take a long time to run.

The sp_iqdbstatistics stored procedure displays the database statistics collected by the most recent execution of the sp_iqcheckdb procedure.

Related concepts
Analysis of Allocation Problems
Database Connection Issues
Database Verification
Database Repair
Index Error Repair
Running out of Space During Checkpointing
Server Operational Issues
Related tasks
Starting a Server in Forced Recovery Mode
Recovering Leaked Space
Decision Flow for Server Recovery and Database Repair