Friday, January 28, 2011

Binary Tree Corruption cause Data Loss in SQL Server

Microsoft SQL Server database supports binary tree indexes for fast query. The pages of Binary tree index are known as index nodes, the top node of binary tree is known as root node. However, the middle nodes are known as branch nodes and bottom nodes are known as leaf nodes. If table indexes get damaged, SQL Server database shows an error message and you unable to access your SQL database. To resolve such situations, you should use your most latest backup and restore the lost data. Sometimes, backup fails to restore the database and thus, you need to use SQL database recovery software.

You are working on SQL Server database wherein, You might get below error message:

Server: Msg 8936, Level 16, State 1, Line 1
Table error: Object ID O_ID, index ID I_ID. B-tree chain linkage mismatch. P_ID1->next = P_ID2, but P_ID2->Prev = P_ID3.

Root Cause of Problem:

The above error message appears when SQL Server database find a break in logical page chain at any level of Binary tree. It can happen at any level of binary tree including root, middle and leaf nodes.

Resolution:

For solving the above error message, you should follow the given below steps:

Run the hardware diagnostics as above problem could occur due to hardware problems. Fix the hardware problems, if any.
If the problem persists still then restore the corrupted SQL Server database from a latest and clean backup.
In case of unavailability of valid SQL server backup, you could run DBCC CHECKDB command to find the amount of corruption and note the repair clause. Again run DBCC CHECKDB command with suggested repair clause.
If database still unaccessible, you should use an advanced SQL database recovery tool.

These SQL database recovery tools are advanced tools that can effectively repair and restore corrupted SQL databases. Such tools are equipped with rich GUI, to-the-point documentation. You can freely use these software for repairing and restoring corrupted or damaged SQL Server database in any case of SQL database corruption.

The most trusted SQL Database recovery tool by the many database administrator is Stellar Phoenix SQL Recovery tool. It is a complete repair software for damaged or corrupted SQL Server databases. This software supports mdf recovery for SQL Server 2008, 2005 and 2000. It is available with advanced graphical user interface and restores all database objects like tables, triggers, user defined data types, stored procedures, collation views, rules and many more. The software is compatible with Windows Vista, XP, 2003, 2000, NT and 7.0.

Thursday, January 20, 2011

Recover SQL Server Database from Corrupted Table

Sometimes when you want to update or delete SQL server database table and got an error message that shows your SQL server database table has been corrupted. This may happen by the several reasons some of them are improper system shutdown, virus attack, hardware failure, power failure and many more. At this situation you will be unable to access your SQL server database table. For fixing this problem you should use an advanced SQL server recovery software that will repair and restore your damaged SQL server database table.

Consider a practical scenario wherein, you may encounter the given below error messages while your are trying to update, delete or open an SQL server database table:

“Error: 644, Severity: 21, State: 5
Could not find the index entry for RID '1613b1000000100' in index page (1:189), index ID 7, database 'TestDB'..
Error: 8646, Severity: 21, State: 1
The index entry for row ID was not found in index ID 7, of table 2009058193, in database 'test644'.”

Particularly the above error message occur on the non-clustered index of Microsoft SQL server database but sometimes this problem also occurs with the clustered SQL server database database.

Resolution: For restoring corrupt SQL server database table, you have four option which are given below:

Fix Hardware Issue: Check the hardware of the system if you find any faulty hardware then replace it with the new one.
Restore from Backup: Restore it from the latest backup, if backup is clean and updated.
Run DBCC CHECKDB: Run this command to fix the problem.
Re-built Indexes: If possible then rebuilt indexes of table but it is not the better idea.

After performing three above steps and you are still unable to fix the problem then the best idea is to buy an advanced third party SQL recovery software to fix the problem.

Stellar Phoenix SQL Database Recovery is an MDF recovery software that is able to repair MDF as well as NDF files from all instances of corruption. It repairs corrupted MDF, NDF files created in SQL Server 2000, 2005, and 2008. This MDF file repair tool is capable of recovering various database components such as tables, stored procedures, views, collations, queries, triggers, etc. It is compatible with Windows 7, Vista, Server 2003, XP, and 2000.