Tuesday, April 13, 2010

CompactDatabase Process Fails on a Damaged MS SQL Server Database

Microsoft SQL Server is a popular relations database management system. It stores all your valuable data in the MDF (Master Database File). In case of corruption of the MDF file, due to virus infection, improper system shutdown, and other such reasons, the database become totally inaccessible. This behavior of MS SQL Server leads to significant data loss. In some cases of corruption, you can not even run the repair utility or open database connections after corruption. In such situations, you need to restore database from backup. If the backup itself is corrupt, SQL Database Recovery is required to sort out the problem.

In a practical scenario, you may get the below error message on a damaged SQL Server database in Microsoft SQL Server 2000 Windows CE Edition Query Analyzer when you try to open any connection:

“Error: 0x80004005 E_FAIL
Minor Error: (25017)
Description: Unspecified Error”

The error code in this error is SSCE_M_DATABASECORRUPTED (the SQL Server database file is corrupted or it is a Non-database file)

A eVB (Microsoft embedded Visual Basic) application, which uses CompactDatabase method isn't capable of compacting the damaged Microsoft SQL Server CD database. When you attempt to call CompactDatabase method, you may come across the below error message:

“Error: -2147467259

To recover inaccessible data from the SQL Server database in such situations, you need to identify the root of the problem and then resolve it through SQL Server Recovery tools.


You may face this problem due to severe database corruption. Engine ActiveX code for the CompactDatabase attempts to start source database prior to compact source database. In case the start process fails, CompactDatabase process aborts. Thus you can't use CompactDatabase method on damaged database as the initialization method on damaged database fails in all situations.


To prevent this problem from occurring in future, obtain latest service pack of Microsoft SQL Server. To fix the current database corruption problem, repair and restore the database using powerful third-party SQL Recovery software.

The applications are very easy to use with simple and rich graphical user interface. They do not demand sound and prior technical skills to perform SQL Recovery. With read-only and non-destructive conduct, these tools preserve integrity of your database.

SQL Recovery software repairs and restores damaged SQL Server database in all corruption scenarios. The software works well with Microsoft SQL Server 2008, 2005, and 2000. It restores all MDF file objects, such as tables, reports, forms, macros, stored procedures, constraints, and triggers.

No comments:

Post a Comment