Windows Management and Scripting

A wealth of tutorials Windows Operating Systems SQL Server and Azure

Error 2533 in corrupt SQL Server 2008 database

Posted by Alin D on August 17, 2010

A page is the most basic unit of storage in SQL Server. The space allocated to a data (.mdf) file is divided into contiguous pages from 0 to n. Every page starts with a 96-byte header that stores the information about the page number, its type, allocation unit ID of the object that owns this page, and the amount of free space on the page. However, it may happen that the header contains the allocation unit ID of a different object. It can happen due to corruption in the data file, which may occur due to various reasons such as virus infections, human errors, power outages, etc. You can perform mdf database repair using various corrective measures. However, if you are unable to do so then you should use a third-party SQL repair software to repair SQL database.

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

“Table error: Page P_ID allocated to object ID O_ID, index ID I_ID, partition ID PN_ID, alloc unit ID A_ID (type TYPE) was not seen. Page may be invalid or have incorrect alloc unit ID in its header.”

Cause:
The cause of aforementioned error message is that a page, which is allocated to the A_ID allocation unit ID, does not have the allocation unit ID in its header. In fact, the header has a different allocation unit ID.

Resolution:

Following methods can be performed to rectify this error message:

Look for hardware issues: You should run hardware diagnostics and check whether this problem is hardware related. You should also check the error logs to zero in on the cause of the actual problem. Also, you can swap the hardware components to isolate the issue. Finally, you can also try to reformat the disks and reinstalling the operating system.

Restore from backup: You should check the backup of the database. If it is clean and updated, then you should restore the database from the backup.

Use DBCC CHECKDB: You can also run the DBCC CHECKDB command without any repair clause to check the extent of corruption. Then after determining the repair clause, you can run the command using the repair clause.

However, it may happen that even after performing these methods you are not able address the situation. In such cases, you should use a third-party SQL repair software to repair SQL database. These read-only tools are able to recover corrupted database using fast yet sophisticated scanning algorithms.

Stellar Phoenix SQL Database Recovery is an MS SQL repair tool that enables you to repair SQL database. It is capable of repairing corrupt SQL databases created in SQL Server 2000, 2005, and 2008. It is ale to recover various database components such as stored procedures, queries, triggers, tables, views, etc. This
SQL recovery tool is also capable of preserving the database constraints and relationships between tables. It is compatible with Windows 7, Vista, Server 2003, XP, and 2000.

Sorry, the comment form is closed at this time.