Showing posts with label ms sql repair. Show all posts
Showing posts with label ms sql repair. Show all posts

Sunday, June 13, 2010

I/O Logical Check Failure Cause SQL Server Database Corruption

Like other databases and files, Microsoft SQL Server database may also come across various corruption issues. The corruption can take place due to various reasons, including the internal database or SQL Server application issues and system related problems. One major system related problem, which can cause MDF (Master Database File) corruption, is I/O logical check failure. In such situations, the database becomes totally inaccessible and you come across severe data loss situations. In order to get your mission critical data back, you need to repair and restore the corrupt database using SQL database recovery solutions.

The I/O logical check failure can be indicated by various error messages, which includes the following one:

“Error 823
I/O error detected during at offset in file ''”

The above error may also occur when SQL Server come across other system errors. After this behavior, SQL Server database become totally unusable. In order to sort out this problem, you need to fix it through SQL recovery methods.

Cause

If the read Windows API (Application Programing Interface) call or writer API call for SQL Server database is successful, but some particular logical checks are unsuccessful. In such cases, error 823 occurs, which resembles the following:

“2003-09-05 16:51:18.90 spid17 Error: 823, Severity: 24,
State: 2
2003-09-05 16:51:18.90 spid17 I/O error (torn page) detected during read at offset 0x00000094004000 in file 'F:\SQLData\mydb.MDF'..”

Resolution

In order to work around this behavior of Microsoft SQL Server database and perform SQL Server recovery, you should first run DBCC CHECKDB utility on the affected or damaged MDF file. Before you try to fix any system related issue with MS SQL Server, you should first check the database and sort out the problems. If DBCC CHECKDB statement fails to detect or fix any error, please check the Application Event Log of Microsoft SQL Server.

If the above method fails to find and fix any errors in Microsoft SQL Server, you need to restore the database from a valid and recent backup to get your valuable data back. In case backup is not available, you have to opt for third-party applications to repair and restore the corrupted MDF file.

The repair mssql applications are particularly designed to methodically scan entire database and extract all inaccessible data from it. The software have read-only approach and simple graphical user interface to ensure safe and easy recovery.

SQL Recovery is the most efficient and powerful utility to ensure absolute recovery in all MDF corruption situations. It works well with Microsoft SQL Server 2008, 2005, and 2000. The software restores all MDF file objects, such as tables, reports, forms, macros, stored procedures, and triggers.

Wednesday, June 9, 2010

Minimum Repair Option for the SQL Server Database Inconsistency Issues

In Microsoft SQL Server, if any transaction violates the integrity constraints during execution, database inconsistency occurs. The transaction leaves your MS SQL Server database in illegal state and it gets aborted with an error. Database inconsistency leaves your MDF (Master Database File) in an unusable and inaccessible state, which can lead to serious data loss. In such cases, a valid and updated backup come for your rescue. You can easily restore all your valuable data from current backup and prevent needs of SQL recovery using third-party applications.

However, in case you are unable to restore data from the backup or backup is incomplete, you can check the database errors and fix them using inbuilt utility of Microsoft SQL Server, called CHECKDB. It offers you an option to repair the database errors. Database inconsistency may also occur due to system level errors, like file system and hardware. You are highly recommended to fix these errors before repairing the database, else you may face the same problem again after some time.

When you apply DBCC CHECKDB on your MDF file, a suggestion is provided for indicating what minimum repair option is required to fix all errors. Such messages may resemble the following:

“CHECKDB found 0 allocation errors and 15 consistency errors in database 'mydb'.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (mydb”

The database repair recommendation is minimum degree of repair to try resolving all the errors from DBCC CHECKDB. It doesn't mean that the operation is capable of actually fixing all the errors and recover SQL database. You should also keep in mind that not all the errors reported by DBCC CHECKDB, where repair_allow_data_loss is suggested, cause data loss.

However, some of the database inconsistency errors can cause severe data loss problems. You must run the repair process for determining if solution of a particular error is going to cause data loss. In order to find errors with a specific SQL Server database table, you can try running DBCC CHECKTABLE tool.

In case you run across database corruption and data loss due to any inconsistency error, MS SQL repair becomes need of hour.
You can easily repair and restore damaged MDF file of SQL Server using SQL Server recovery software. The applications use advanced scanning algorithm to provide assured recovery of all your valuable data.

Stellar Phoenix SQL Recovery is the best utility to ensure absolute recovery of inaccessible SQL Server database. The software works well with Microsoft SQL Server 2008, 2005, and 2000. It is capable of restoring all MDF file objects, such as tables, reports, forms, macros, triggers, stored procedures, data types, and constraints.


Article Sources: http://www.articlecat.com/Article/Minimum-Repair-Option-for-the-SQL-Server-Database-Inconsistency-Issues/403169