Tips to resolve "Chain sequence numbers are out of order..." Error Message
Consider a practical scenario, where you encounter the below error message when you attempt to access your database:
"Chain sequence numbers are out of order in IAM chain for object ID O_ID, index ID I_ID. Page P_ID1 sequence number SEQUENCE1 points to page P_ID2 sequence number SEQUENCE2."
Your SQL database records become inaccessible after the above error message pops up. To add to your problems, the same error message reappears each time you attempt to access your SQL database records.
Cause:
The fundamental reason for the occurrence of the above error message is metadata corruption i.e the sequence numbers of the IAM pages is corrupted. Corruption can occur due to various hardware and software factors.
Resolution:
For complete troubleshooting of the above error message, you will need to firstly analyze the exact reason for the corruption of sequence numbers of IAM pages. If the corruption is caused due to hardware failure, then change the hardware component. However, in case of software corruption, run DBCC CHECKDB command – with appropriate repair clause – to repair the database.
DBCC CHECKDB command allows complete repair in most cases. But, if in case the command fails, then the only option is to use a advanced SQL Recovery software. Such SQL Repair applications employ high end scanning mechanisms to repair the database.

