Posts Tagged ‘Corruption’

15
May

Metadata Corruption Issue in SQL Databases When Upgrading to SQL Server 2005

Corruption seems to be apparent when you do not carry out regular integrity checks on your SQL database. It is required to pick up corruption in early stages to stay away from unnecessary downtime and a critical danger of data loss. When your SQL database is in a suspect state, you should not right away restart the SQL Server and go for a speedy repair. In such circumstances, you can run ‘DBCC CHECKDB’ with the ‘All_ErrorMsgs’ solution. You must run this tool to completion and then design a repair strategy. In case the corruption nonetheless persists, you really should carry out SQL recovery employing advanced third-party tools.

SQL customers are normally faced with metadata corruption or method table corruption. SQL Server 2000 has the provision to make direct adjustments to the method tables, including the most essential ‘sysindexes’, ‘sysobjects’, and ‘syscolumns’. It is simple for the SQL 2000 users to function around these tables and also insert, update, or delete whatever is required. Even so, this at times leads to database inconsistency. If you delete an object from ‘sysobjects’ with no updating the exact same in ‘sysindexes’ and ‘syscolums’, you will certainly run the threat of database corruption.

In SQL Server 2005, the DBCC CHECKDB also consists of DBCC CHECKCATALOG checks. As a outcome, when you upgrade to SQL Server 2005, you will get ‘Msg 8992′ that indicates metadata corruption:

Msg 8992, Level 16, State 1, Line 1
Check Catalog Msg 3853, State 1: Attribute (object_id=1977058079) of row (object_id=1977058079,column_id=1) in sys.columns does not have a matching row (object_id=1977058079) in sys.objects.

The above error appears due to the fact of direct updates to the method tables in SQL 2000. This problem can’t be resolved by just operating DBCC CHECKDB on the database. You will want to delete records from the technique tables. A a lot more risky way to deal with this is editing the program tables in SQL Server 2005. This is also really complicated and not a proposed solution.

You can also try creating scripts of objects in the original database and exporting all the data. Later, you can produce a new SQL database and reload all information after recreating the objects. If the above approaches fail to repair corruption, you should take help of SQL database recovery software package. These third-celebration tools use advanced, ingenious strategies to safely repair broken SQL databases. They can successfully restore tables, indexes, views, triggers, keys, user-defined functions, and so on. Employing these utilities, you can also preview your database prior to performing recovery.

CALENDAR

May 2012
M T W T F S S
« Apr    
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31  

LATEST POSTS

Top Commentators

  1. Be the first to comment.