How to Fix a Damaged Access Database
There are two aspects to the Compact and Repair utility. The tool uses the Compact feature to get rid of all the empty space that exists in a database. Typically, it does this by first creating a new database and then transferring each object from the old database to the new database, excluding all the empty space. This way only the data gets transferred to the new database, which can be given any name that you want.
On the other hand, the Repair feature actually tries to repair the tables, indexes and even the queries present in the database. However, this utility is unable to repair reports, forms, modules or macros.
It is important to note that the Compact and Repair utility is not merely used to carry out an access repair but even routine maintenance so as to ensure the efficiency, reliability and integrity of the Access database. The Compact and Repair utility carries out the following tasks -
" It helps organize and consolidate the data pages, making use of the empty space created by objects that have been deleted or renamed.
" It updates the table and index statistics enabling the query optimizer to choose the query plan that is most efficient.
" It repairs the database if there are any structural inconsistencies in the Access database.
It is important for an Access user to remember to carry out this maintenance task diligently so that no major access repair needs to be carried out. To run the tool, you can go to Tools, Database Utilities and then select the Compact and Repair Database item. On the other hand, you could also configure the database to compact and repair itself every time the database is closed.
The Compact and Repair utility is very useful in repairing Access MDB files but there are times when it ends up causing more damage to the file. If you have taken a backup copy of the file before running the tool, you should be able to recover some data else you might have to use third-party software such as Advanced access repair from DataNumen to reliably restore all the data from the damaged MDB file. This tool can not only recover the structure and records of the tables in Access databases but also deleted tables and records thereby ensuring that all data is properly restored.