Friday, February 25, 2011

Simple Steps For Avoiding Microsoft Access Database Corruption

Whenever you get disconnected unexpectedly, a ‘corruption flag' might set up in the .mbd file, pointing towards the corruption of your database. During this situation, if any of the users try to open Microsoft Access Database, he/she receives a message, which states that the database needs to be repaired before the users can access it.

Now if the users is unaware about the repairing procedure or is not allowed to perform the repair, then this situation might consume some time before things are back to normal. This can result in extreme frustration and considerable loss of productivity as well. But why should such a situation arise? There are certain simple steps that can help in preventing your Access Databases from getting corrupted.


1. Splitting The Database: One of the best steps to avoid corruption in your database. Just split your database in two ends- front-end and back-end. You can make use of front-end for storing reports, forms and queries, whereas the other end can be utilized for keeping data tables. You can place a front-end's copy on the computer of each and every user and can store the back-end in the network's shared folder.

2. Do Not Keep Connections Open: This should be kept in mind not only by the user but by the programmer as well. As a programmer, you should always remember to close down all the connections, immediately after using them. Such connections if left opened can give way to an unanticipated dropped connection. Only those connections that are being used inside a loop are allowed to be left open for a little longer than actually required.

3. Correct Exit from Database: The user as well as the programmer should make sure to close an application or database in a correct manner. Actions like End Task/Ctrl-Del-Alt can be disastrous for your Access Database. Make sure to complete your tasks, before closing the applications.

4. Regular Use of Compact And Repair Function: The built-in function should be performed on regular basis in order to prevent your database from getting corrupted. Keep your eyes opened for any sort of error messages as they signal database corruption.

No comments:

Post a Comment