Tips to resolve “Object ID O_ID, index ID…” Error Message

In SQL Server database, the indexes are primarily organized as B-trees. Every page in an index B-tree is known as Index node. These B-trees enable you to effectively handle your data saved in tables and indexes. While these B-trees allow you to properly manage your data, corruption or damage in them can also result into inaccessibility of records saved in the SQL database. In such situations, an easy way to access your data is by restoring it from an updated database backup. However, if no backup is available or backup file(s) itself gets corrupted, then you will need to use advanced SQL database repair tool to repair your database.

As a practical case, you encounter the below error message when you attempt to access the records saved in your Finance database:

“Object ID O_ID, index ID I_ID: Page P_ID is empty. This is not permitted at level LEVEL of the B-tree.”

Data stored in the Finance database becomes inaccessible after the above error message appears. Furthermore, the above error message repeatedly occurs each time you attempt to access the records saved in the Finance database.

Cause:

The root cause for the occurrence of the above error message is the B-tree above the leaf level is empty or corrupted. This further corrupts the table indexes and makes their data inaccessible. Corruption can occur due to logical or physical factors.

Resolution:

To resolve the above error message, you will need to follow the below measures:

  • In case of corruption caused due to hardware failure, you will need to run hardware diagnostics and swap the damaged hardware components with new ones.
  • In case of logical database corruption, you will need to run DBCC CHECKDB command (without repair clause) to identify the extent of Finance database corruption. After identifying the corruption, run DBCC CHECKDB command with appropriate repair clause.

However, if DBCC CHECKDB with repair clause fails to resolve the issue, then you will need to opt for third party SQL database recovery tool. These SQL repair are developed by highly talented data recovery experts and provide risk-free database repair.

Stellar Phoenix SQL Recovery is an effective SQL Repair software to repair databases created in SQL Server 2008, 2005, and 2000. Designed for Windows Vista, XP, 2003, 2000 and NT, the tool recovers MS SQL database objects, like views, triggers, stored procedures, and more.

CHECKDB Fails to Fix Error 8909 and 8905

DBCC CHECKDB commands allow checking logical and physical SQL Server database integrity. When used with REPAIR_ALLOW_DATA_LOSS argument, it repairs all reported errors, but with the possibility of data loss. The corrupted data gets deleted in the process. But at times, when you run DBCC CHECKDB command with REPAIR_ALLOW_DATA_LOSS argument, database corruption is reported as fixed though is not corrected. In such situations, you can use your recent data backup to restore the database. But if the backup fails to restore or is not present, you need to scan your damaged database with powerful SQL Recovery applications.

Consider a practical instance, you scan your SQL Server 2000 database and get 8909 error, followed by a group of eight or more 8909 error messages:

Server: Msg 8905, Level 16, State 1, Line 1
Extent (1:192) in database ID 10 is marked allocated in the GAM, but no SGAM or IAM has allocated it.

Or

Server: Msg 8909, Level 16, State 1, Line 1
Table error: Object ID 0, index ID 0, page ID (1:192). The PageId in the page header = (0:0).

Further, you use DBCC CHECKDB with REPAIR_ALLOW_DATA_LOSS option and it reports it as fixed. But again, when you run DBCC CHECKDB command to check database integrity, it reports the same error messages.

Cause

You encounter this issue when the following conditions are true:

  • You run DBCC CHECKDB on pages and extents that are allocated for sorting
  • Pages have field values such as Page type is set to SORT_PAGE (7), Index ID is 0 and Object ID is 0
  • You haven’t installed SQL Server 2000 Service Pack 2 or later.

Solution

To resolve the issue, you can follow any of these methods:

  • Install SQL Server 2000 Service Pack 2 and run DBCC CHECKDB command with repair_allow_data_loss option
  • Use DTS (Data Transformation Services) and transfer the database out.

If the above measures don’t help or the database still appears to be corrupt, you need to use efficient third-party repair sql applications. These are the commercial tools provided to scan and repair damaged SQL Server databases. You can use these SQL Recovery products in any case of SQL database corruption.

Stellar Phoenix SQL Recovery is the finest sql repair tool to scan and repair damaged or corrupt SQL Server databases. The software performs safe repair operations and restores all database components. It is compatible with SQL Server 2005 and 2000. The software supports Windows Vista, XP, 2003, 2000 and NT.

MDF Corruption Due to OS Errors or I/O Check Failure

Sometimes you may face system or hardware problems while writing data to or reading from the SQL Server 2000 database. These issues can make your database inaccessible and cause serious data loss. In such situations, all your critical data becomes unusable and you need to opt for SQL Database Recovery.

While reading from or writing to the SQL Server database, you might encounter the below error message:

“Error 823
I/O error <error> detected during <operation> at offset <offset> in file ‘<file>’”
This error message may occur every time when you start SQL Server and access the MDF file.

Root of the issue

Microsoft SQL Server 2000 displays this message when any of the below given conditions are true:

  • Operating system problem: A read Windows API (Application Programming Interface) call or write API call isn’t successful and MS SQL Server encountered operating system error which is related to API call.
  • I/O logical check failure: This behavior may occur if the read API or write API is successful but particular logical checks on database are unsuccessful. This situation prevents SQL Server to access data from MDF file.
  • MDF Corruption: This problem may occur if your MDF file is corrupted and thus SQL Server can not recognize the file and access data from it. This behavior causes serious data loss.

Resolution

There are three possible solutions of this issue:
. If the problem is due to operating system error then you need to fix the Windows API issue. It may require repair or reinstall.
. Use DBCC CHECKDB command to check any logical errors in the database. It is an in-built command in SQL Server to fix application level errors.
. Use SQL Database Repair software to scan the corrupted database and recover all the inaccessible data from it.

These software are specifically designed to repair sql database in most of the corruption scenarios. These software come equipped with interactive graphical user interface and thus allow you to have “Do It Yourself” recovery.

These software can recover all the MDF file objects including tables, reports, triggers, stored procedures, constraints, indexes, views etc. They provide absolute results with their read-only and non-destructive design.

Stellar Phoenix SQL Recovery is a robust tool that can repair sql database in almost all corruption scenarios. This software is able to recover all the database objects from MS SQL Server 2005 and 2000. It is compatible with Microsoft Windows Vista, XP, 2003, 2000 and NT.

An Application That Uses ADO Interface May Damage MDF File

You may encounter functionality issues in SQL Server when any application that uses ADO (ActiveX Data Objects) interface connects to SQL Server. It may cause corruption to the MDF file and cause data loss. You need to perform SQL Recovery to repair and restore the affected database components.

The applications which use ActiveX Data Objects interface in following scenarios might experience functionality problems:

  • When the application connects to Microsoft SQL Server 2005, Microsoft SQL Server 2000 or SQL Server Desktop Engine (also called MSDE 2000).
  • Application uses “SET NOCOUNT ON” statement for connecting with Microsoft SQL Server.
  • Application inserts a row in the table which has an identity column by using the Microsoft ActiveX Data Objects (ADO) client-side cursor.

In such situations, you may face MDF corruption that results into serious data loss.

Root of the issue

When the ADO application queries the identity column value or newly inserted row, value ‘0′ is returned mistakenly. It might result into the application and SQL Server to malfunction and even damage the MDF file. Whether malfunction or corruption occurs totally depends upon how SQL Server and application tackles the scenario.This issue occurs due to problems in MDAC (Microsoft Data Access Components) components of Microsoft Windows Vista and XP. This problem also takes place after you install hotfix 940569 on computers with MDAC 2.8 SP1 installed.

To make your lost database information accessible from the damaged MDF file, you need to perform sql repair. SQL utilities are uniquely designed applications for to-the-point repair and restoration of affected SQL database components. It is the process of repairing and restoring corrupted MDF file and extracting all data from it. This is best possible using third party SQL Recovery tools.

These are powerful applications that are capable of scanning the corrupted MDF file and retrieving all of its objects like tables, views, rules, reports, triggers, indexes, stored procedures, constraints, defaults etc. These software are user-friendly applications with easy to understand graphical interface. No sound or prior technical skills are required to repair sql. A user can achieve safe and absolute database recovery by these SQL utilities.

Stellar Phoenix SQL Recovery is the most efficient and powerful SQL Recovery application. It can easily repair and restore corrupted MDF files and repair all MDF objects. It also recovers the backup files MS SQL Server. It is compatible with Microsoft SQL Server 2005 and 2000. It supports Windows Vista, XP, Server 2003 and 2000.

Resolving Error 5171 in SQL Database

SQL Server database file (MDF file) corruption or damage can occur due to SQL Server malfunctioning, improper server shutdown, virus infection, hardware failure and more. Once the SQL database gets corrupted, the SQL database can become completely inaccessible. In such situations, if there is no backup available, the user needs to perform SQL database repair by using advanced sql repair application.

Consider a practical scenario, where a user is working on SQL Server 2005 and creating a report. While doing so, the Windows server restarts due to power failure and the user encounters an abrupt server restart screen prompting for the reason and information. Due to the operating system issue, the SQL database becomes inaccessible. When the user tries to attach the MDF manually, he encounters the below error message:

“An exception occurred while executing a Transact-SQL statement or batch. <database name>_db.mdf is not a primary database file. (Microsoft SQL Server, Error: 5171).”

Or

“C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\MYDATABASE.mdf is not a primary database file. (Microsoft SQL Server, Error: 5171)”

In such circumstances, the database administrators recommend to attach a single file. However, when the user uses sp_attach_single_db Stored Procedures, the user encounters the following error message:

“Server: Msg 5172, Level 16, State 15, Line 1

The header for file path”"\.mdf is not a valid database file header. The PageAudit property is incorrect.”

Cause:
The main cause of the above error message is MDF file corruption. The above issue occurs when the MDF file header gets corrupted or due to insertion of some invalid information in the header file. All these situations result in inaccessibility of the SQL database. To ensure complete accessibility of the SQL database, the user needs to recover it from the latest backup. But if the user has not created any backup of the inaccessible MDF file, then he needs to perform MDF repair. To do so, the user needs to use effective SQL Repair application. Such applications incorporate advanced and powerful scanning methods to repair the corrupted MDF file. The recovery software perform systematic scan of corrupted MDF files, repair and restore them in their original format without altering any information.

Stellar Phoenix SQL Database Recovery is the most trustworthy SQL recovery software. This repair software can repair sql objects such as, tables, reports, forms, macros, database constraints, stored procedures, triggers etc. It supports SQL Server 2005 and 2000. It is compatible with Windows Vista, XP, 2003 and 2000.

The system cannot self repair this error – while accessing SQL database

Database Console Commands (DBCC) check the logical and physical consistency of the SQL database and can also resolve few detected error messages. But there are many issues that can not be resolved by using DBCC commands. In such scenarios, the SQL database corruption mainly occurs due to corrupt metadata, corruptions in certain critical system base tables or hardware failure. For absolute and systematic recovery of SQL database, the user needs to use effective SQL Recovery application.

The error message that appears when a user attempts to access SQL database is:

“The system cannot self repair this error”

After a user encounters the above error message, the data saved in the SQL database becomes inaccessible. The main cause of the above error message is SQL database corruption due to corrupt system database files, Page Free Space (PFS) page damage or corrupt metadata. Another main reason for the above error message can be faulty hardware. To resolve the above error and access the data in SQL database, the user needs to follow these steps:
1) The user can restore the database from latest backup.
2) The user can run DBCC commands with repair option. (For the above error message, the DBCC command can not repair the database.)
3) If there is a hardware issue, the user needs to replace the hard drive.
If the above measures fail to perform, then the user needs to recover the inaccessible data by using efficient SQL Recovery software. A SQL Recovery application incorporates advanced and powerful scanning algorithms to recover the lost data.
Stellar Phoenix SQL Database Recovery is the most advanced SQL Recovery software that repairs and restores the corrupted and damaged .mdf files from MS SQL Server database. With Stellar’s sql repair software, you can perform complete SQL Database Recovery in all possible data loss scenarios. This read only SQL Repair application can repair sql objects including tables, views, saved procedures and triggers. It provides interactive and intuitive user interface and supports MS SQL Server 2005 and MS SQL Server 2000. This SQL Repair utility can also recover and restore the backup files of MS SQL Server.

Fixing Error 8909 in SQL Database

The DBCC DBREINDEX is a Transactional-SQL command that rebuilds one or more indexes for a table in the SQL database. The DBCC SHRINKDATABASE is a T-SQL command which shrinks the size of the data and log files in the specified database. If these commands are executed concurrently on a particular table, the table is corrupted. In such situations, if the user has not created any back up, he can recover the table by using effective SQL Recovery software.

For example, when a user executes DBCC DBREINDEX concurrently with DBCC SHRINKDATABASE on a table, he encounters the below error message:

“Error: 8909
Table Corrupt: Object ID 0, index ID 0, page ID (1:623). PageId in the page header = (0:0).”

The above error message halts the shrink operation and makes the table corrupt. The main cause of the above error message is that the user executes the shrink database and re-indexing operations at the same time. This error message mainly appears in multiprocessor environments. To prevent your SQL components from the above problem, the user needs to reschedule the operations to run at different times and turn off the Autoshrink option. To resolve the above error the user needs to execute DBCC CHECKDB command with repair_allow_data_loss option. This command reports the user that the error has been fixed although the error is not fixed. To resolve the error and access the table, the user needs to restore the table from the recent back up. But if the user has not maintained any back up, then he needs to use efficient SQL Recovery software.

Stellar Phoenix SQL Recovery software, provided by Stellar Information Systems Limited ensures complete SQL Database Recovery. This application can repair sql components like tables, queries, views, triggers and stored procedures by incorporating influential scanning methods. It is read only application that provides safe and non-destructive SQL database recovery. This SQL Repair application provides highly interactive and intuitive user interface that makes it easy to understand and implement.

This SQL Repair application can also recover and restore the backup files of MS SQL Server. It supports MS SQL Server 2005 and MS SQL Server 2000. It supports Windows Vista, XP, 2003 and 2000.The demo version of this sql repair utility is available on Stellar’s website and popular shareware websites, which allows the user to preview the lost SQL database components, which the user can recover.

SQL Database Corruption Reported in DBCC command

A SQL database provides solid back end database support to various websites and front end applications. We can easily and efficiently process heavy volumes of database operations using SQL Server. The database corruption is a common problem witnessed by many database professionals which pertains to error in one or more of SQL Server database components/objects like tables, views.

DBCC CHECKDB command enables you to check the physical and logical integrity of all the database components in SQL database. This in-built SQL Server command also reports about the database corruption. To effectively and systematically resolve the SQL database corruption, you need to use efficient SQL Recovery software.

When a user runs a DBCC CHECKDB command on your SQL Server database, he encounters the following error message:

“Server: Msg 2537, Level 16, State 1, Line 1 Table error: Object ID 587149137, index ID 0, page (1:1325), row 0. Record check (Valid Sql_variant) failed. Values are 1 and 0.”

The main reason for the above error message is corruption in the SQL database of MDF file. The user encounters this error message when all the below conditions are true:

  • The data originates in another column that is of sql_variant data type and at some point data is sent to other system by the SQL Server.
  • The sql_variant column contains numeric values.
  • SQL server loads the data into a column that is of sql_variant data type.

Once the above error message appears on the screen, the data stored in the SQL database becomes inaccessible. To resolve the above error message and perform complete SQL Database Recovery, the user needs to use a third party application named SQL Recovery software.

Stellar Information Systems Limited provided the finest SQL Recovery software as Stellar Phoenix SQL Recovery. This SQL Repair application is a powerful tool which can completely recover and repair sql database components such as tables, views, stored procedures, triggers, queries etc. This SQL Repair application is a high end repair utility that can recover and restore the backup files of MS SQL Server. This SQL Recovery application supports MS SQL Server 2005 and MS SQL Server 2000. It is designed with Read-only conduct to maintain total database integrity with all objects and settings preserved as they were at the time of data loss. The software comes with an interactive user interface and is user friendly which makes it easily understandable without prior technical knowledge.

The demo version of this sql repair utility is available on Stellar’s website, which enables the user to preview the lost SQL database components.

Bulk Insert statement causing SQL Database Corruption

The BULK INSERT command in Structured Query Language (SQL) is used to import large amount of data from a BCP-formatted text file into SQL Server. After using BULK INSERT command, there is no need for the user to invoke Bulk Copy Program (BCP) externally. However, there are possibilities of database corruption when a user executes the BULK INSERT command. In such circumstances, the user needs to use efficient SQL Recovery Software.

As a practical example, when a user executes a BULK INSERT command to import data in Microsoft SQL Server 2000, database corruption occurs. The user also receives the below error message:

“Server: Msg 823, Level 24, State 2, Procedure gfspTMAppendText, Line 20 I/O error (bad page ID) detected during read at offset 0×0000000024e000 in file ‘C:\Program Files (x86)\Microsoft SQL Server\MSSQL\data\REPRO.mdf’.”

The two main reasons for database corruption are:

  • The user used the Bulk Insert command together with the FIRE_TRIGGERS option.
  • The user imports a table that has an after trigger, and the trigger updates a text column of another table.

Once the database has been corrupted, the data saved in database becomes inaccessible. To recover the lost data easily and systematically, the user needs to use a third party application named sql repair software. This utility provides complete SQL database Recovery by incorporating advanced scanning algorithms.

Stellar Information Systems Limited provides the finest SQL Recovery software. Stellar Phoenix SQL Recovery is a high end application, which recovers and repair sql database components such as tables, queries, stored procedures etc. This SQL Recovery Software supports MS SQL Server 2005 and MS SQL Server 2000. The procedure to recover the data involves selecting the corrupt SQL database file, scanning the file and then restoring it to the preferred location. This SQL Repair application also recovers the backup files of MS SQL Server.

Erroneous Command use corrupts SQL Database

Corruption in MS SQL database can occur due to numerous reasons. Problems like software malfunctioning, untimely execution of SQL commands, improper shutdown and more result in SQL database loss or corruption. To perform SQL database recovery in case of SQL database loss, user needs to use SQL database Recovery tools.

Consider a practical situation where a user has executed an Alter Table command to change a column from not null values to null values. After executing the command, user views that the results are undesirable and totally incorrect. The user also experiences various other database corruption issues, such as, unavailability of the SQL database, receiving records that have null columns and more. The above issues can occur due to two main reasons:

  • The column on which the SQL query (Alter Table command) is executed is a part of a clustered index key that may be null.
  • SQL Server does not synchronize column status between the syscolumns system table and the sysindexes system table.

To resolve the above issue and perform sql repair, the user needs to follow these steps:

  • The user can execute the Alter table command to change a column that is a key of a clustered index from not null to null.
  • The user needs to make sure that the database is online and then execute dbcc checktable command by using the repair_build option.

If the above solutions fail to perform SQL database Recovery, then the user needs to use efficient SQL recovery software.

Stellar Information Systems Limited provides the best SQL recovery software named Stellar Phoenix SQL Recovery. This SQL Recovery application incorporates advanced scanning algorithms to repair sql database objects including tables, queries, views, triggers, stored procedures and more. This SQL Repair utility supports MSSQL 2005 and MSSQL 2000.