Tuesday, May 25, 2010

Repairing corrupt indexes in Access 2007 database

MS Access is a relational database management system (RDBMS) from the MS Office product suite. It is usually packaged with other products of MS Office but can be procured as a standalone application as well. The Access databases are simple to use and provide fast performance. The performance of database can be bettered using indexes, which allow you to search for information in a faster way. However, sometimes the indexes in the databases can get corrupt because of various reasons such as human errors, abrupt system shutdown when the database is open, virus infections, power surges, etc. To overcome such situations, you should take appropriate corrective measures. However, if you are unable to do so then you should use an Access database recovery tool to recover Access file.

Consider a scenario wherein you are working on an Access 2007 database. There is a power surge and the system shuts down abruptly. You open the database when the power is restored but find that some of the rows in a table are shown as “#Deleted”.

Cause:

The most possible cause of this behavior is that the index has corrupted because of abrupt system shutdown.

Resolution:
To resolve this situation, you should replace the corrupted database with its updated and clean backup. However, if the backup is not updated then you should use the in-built repair utility of Access to repair the indexes. If it still does not help, then you should perform the following steps to recover Access database:
1.Create a query into the table and try to exclude those rows that have been corrupted.
2.Convert it to a Make Table query once you have got the best range of uncorrupted records. You can use it under Query Type on the Query Tools tab in the Access Ribbon.
3.Run the query to create a new table.
4.Delete the old table.
5.Compact the database to remove any pointers to the corrupted table. You can do this by following Office Button | Manage | Compact.
6.Rename the new table as the older one.
7.Recreate the indexes and relationships in the new table. If you are unable to create a relationship, use the Unmatched Query Wizard to identify which records are missing.

This should solve the problem. However, if you are still facing the issue then you should use a third-party Access recovery tool to recover Access database. Such read-only tools are able to recover Access databases by employing fast yet sophisticated scanning algorithms.

Article Source :- http://www.progtalk.com/viewarticle.aspx?articleid=2364

No comments:

Post a Comment