Sometimes, while trying to access a table from your MS SQL database, the database behaves abruptly and becomes inaccessible. The straight and simple reason behind the problem is the corruption in your SQL Server database. At times, the troubled SQL database issues warning messages that indicates the exact nature of corruption or damage to the database. But, for a normal user it is difficult to interpret the warning message and resolve the problem accordingly. Hence, the best possible solution is to restore the database from the most recent backup. However, if there is no valid backup available, you can take the help of any third party SQL recovery software to recover the inaccessible data back.

While trying to access the already corrupt SQL Server database, you may encounter the below error/warning message:

Page P_ID, slot S_ID in Object O_ID Index I_ID Column COLUMN_NAME value COLUMN_VALUE is out of range for data type "DATATYPE". Update column to a legal value

It is important to note that frequent occurrence of the above error message may severely damage the SQL Server database, which is hard to repair by any repairing utility.
Cause: The above error message is encountered only when the table or column specified in the query contains an illegal value. Apart from this, the reason can be the corruption of the database due to unexpected system shut-down, virus infection, OS malfunction or file system corruption.
Resolution: In order to resolve the problem, just go through the steps below:

First of all, cross check the query, you have fired and examine the Microsoft Windows system and application logs for any damaged hardware. If there is any problem in these regard, solve them.

If there is no such problem, run the command – ‘DBCC CHECKDB’. This is meant to repair the SQL Server database and recover the database objects back.

However, if the database has been severely corrupt, even ‘DBCC CHECKDB’ command fails to repair the same and you need any powerful SQL Server recovery utility. These recovery utilities are designed with many innovative algorithms to locate the corruption and repair them as well. These utilities are completely read-only in their database recovery operations and do not make any damage to the database. Moreover, with instructions for each step of the process, any user can recover his SQL data using the software quite easily.