Tuesday, May 4, 2010

Recovering SQL Server 2008 database from Error 2511

MS SQL Server is a relational database management system (RDBMS) that is used for providing enterprise solution in many organizations. It is fast, reliable, scalable, and a very robust database server to work with. However, at times it can pose some problems due to virus infections, human errors, power surges, abrupt system shutdown while database is open, etc. Due to such issues, the database can become corrupt. In such cases, you should take appropriate corrective measures to resolve the issue. However, if you are not able to address the problem then you should use a third-party MS SQL server recovery software to recover SQL database.

Consider a scenario wherein you encounter the following error message while working on an MS SQL Server 2008 database.

“Table error: Object ID O_ID, index ID I_ID, partition ID PN_ID, alloc unit ID A_ID (type TYPE). Duplicate keys on page P_ID1 slot SLOT1 and page P_ID2 slot SLOT2.”


The most possible reason behind this error message is that the two specified slots have identical keys. The other reason is that the database has become corrupt due to various reasons such as virus infections, human errors, abrupt system shutdown, etc.

Resolution: There are various methods that you can use to rectify this error message. They are:

Look for hardware failure: First of all, run the hardware diagnostics and check the error logs to identify whether the error has occurred because of faulty hardware components. You can also swap the hardware components to zero-in on the problem.

Restore from backup: If you have the updated and clean backup of the database, then you should replace the corrupted database with the backup.

Run DBCC CHECKDB: Run DBCC CHECKDB without any repair clause to know the extent of corruption. Then, run DBCC CHECKDB again with the recommended repair clause. If any of the record is a ghost or the index is not unique, then DBCC can repair this by rebuilding the index. Otherwise, if necessary, REPAIR will delete slot SLOT2 on page P_ID2 or mark the slot as a ghost.

However, if you are unable to address the situation using the aforementioned methods then you should use a third-party SQL recovery tool to recover SQL database. Such read-only tools are able to perform SQL server recovery using fast yet sophisticated scanning algorithms. These tools are capable of performing SQL server recovery by repairing various database components such as tables, defaults, stored procedures, triggers, views, and rules.

SQL Database Recovery is an MS SQL recovery tool that enables you to recover SQL databases created in SQL Server 2000, 2005, and 2008. This SQL database recovery tool is able to repair user-defined functions and data types and database constraints such as primary key, unique key, and checks. It is compatible with Windows 7, Vista, Server 2003, XP, and 2000.

No comments:

Post a Comment