5 Simple Tips to Prevent MS Access Database Corruption

It's important to understand that any time an Access client disconnects unexpectedly, it may set a "corruption flag" in the .mdb file indicating that the database is in a corrupt state (regardless of whether any data has actually been corrupted or not). Any user who attempts to open the database while this flag is set will receive a message, and the database will have to be repaired before it can be used. If the users don't have permission to perform the repair, or don't know how to perform the repair, there may be significant downtime before the database is available again. This can result in a loss of productivity as well as extreme frustration for the users. Following the 5 tips below will minimize your odds of data loss from corruption in your Access databases.

1) Split your database.

The single most important thing you can do to prevent corruption in MS Access databases is to split the database into a "front-end" and a "back-end". The front-end contains all of the forms, queries, and reports, while the back-end contains only the data tables. A copy of the front-end is placed on each user's computer, and the back-end with the table data is stored in a shared folder on the network. How does this prevent corruption? Well, consider the amount of information that must make it across your network to your computer each time you open a form or report. If one bit of that information doesn't make it intact, you risk corrupting your database. Alternatively, if the forms, queries and reports are all stored on your local computer, then the only bit of information that needs to traverse the network is the actual table data. By reducing the amount of data you need to move back and forth across the network, you significantly reduce the chances of corrupting your database. If you're having corruption problems with an Access database on a network drive, splitting the database is the single most important thing you can do to stop it.

2) Don't hold connections open.

This one applies to both programmers and users. If you're a programmer, make sure you close your connections as soon as possible after using them. Leaving the connections open will allow more opportunities for an "unexpected" dropped connection. The only time you may want to leave a connection open longer than required would when it's used inside a loop. For such a case, open the connection at the beginning of the loop, and then close it after the loop is completed. Just make sure it gets closed for all cases (including exceptions).

If you're using a Microsoft Access database or application, be sure to close it when you're finished. Again, leaving the application open provides the opportunity for corruption if a network connection is lost. Remind users to always close the application before going home, as nightly backup jobs may fail or cause corruption in the shared file if there are open connections.

3) Exit the database correctly.

Always close the database or application correctly. Ctrl-Alt-Delete/End Task can wreak havoc on Access databases. Whenever possible, complete your tasks, then close the application using the File - Exit menu option or alternative Exit option provided by the application.

4) Don't skimp on hardware.

Remember that the corruption flag can be set from the slightest packet loss between your computer and the database file. MS Access has sometimes been called "the canary in the coal mine". It has gained this reputation from being the first application to "die" when there's the slightest hint of trouble on your network. Just like the slightest presence of gas caused the canary to die, the slightest presence of network problems and packet loss can kill your Access applications. Make sure you're not using the cheap built-in NICs that come with some PCs. Instead, use brand name network cards. The same goes for cheap hubs. Whenever possible, match good brands of equipment throughout your network.

5) Compact and repair regularly.

Performing the built-in compact and repair function regularly is recommended to prevent corruption and improve performance. Consider automating this function with a utility to compact and repair all of your databases nightly or during the weekend.

Error messages to look out for - the following error messages may signal database corruption:

"The database 'databasename.mdb' needs to be repaired or isn't a Microsoft Access database file."

"Record(s) can't be read, no read permissions on 'databasename.mdb'"

"Unexpected Error 35012"

"Unrecognized database format 'databasename.mdb'."

"'databasename.mdb' isn't an index in this table. Look in the Indexes collection of the TableDef object to determine the valid index names."

"The Microsoft Jet database engine could not find the object 'databases'. Make sure the object exists and that you spell its name and path name correctly."

"The database has been placed in a state by user '' on machine '' that prevents it from being opened or locked"

"Disk Error -- Reserved error (-1601)"

"The database has been placed in an unexpected state."

"Record(s) cannot be read; no read permission on 'MSysObjects'"

"Record(s) cannot be read; no read permission on 'MSysACEs'."

"The Microsoft Jet database engine cannot find the input table or query 'MSysAccessObjects'. Make sure it exists and that its name is spelled correctly."

Conclusion:

While you may never be able to prevent all Microsoft Access database corruption, you should be able to stop 98% of the problems before they occur by following these 5 simple tips. Follow these tips and implement a prudent automated backup schedule to minimize your odds of significant data loss.

Kevin Sparks is a technical writer for Kaizen Software Solutions, the producer of Digital DBA, an automated MS Access monitoring, backup, and compact/repair utility. For more information, visit their website at http://www.kzsoftware.com/products/digitaldba

In The News:


DriveSavers Launches First Data Recovery Portal to Apple Service ...
WebWire (press release), GA - 9 hours ago
DriveSavers announces today an online data recovery portal, exclusively for Apple Authorized Service Providers (AASP) and Self-Servicing Accounts (SSA). ...

Data Rescue - Format Recovery With Data Recovery Wizard Easily
PR Newswire (press release), NY - 7 hours ago
7 /PRNewswire/ -- EASEUS Software, the innovative, dedicated data recovery software provider offers a one-stop solution for format recovery from hard disk ...

HispanicBusiness.com

MARKET SNAPSHOT: Stocks Decline After Grim Jobs Data; Indexes Down ...
CNNMoney.com - 6 hours ago
US stocks had closed higher Tuesday as President-elect Barack Obama stumped for his recovery plan on Capitol Hill, even as minutes from December's Federal ...
GLOBAL MARKETS-Stocks, dollar fall as jobs data spook markets guardian.co.uk
Employment Woes Imperil Stocks’ Nascent Rally Barron's Blogs
Wall Street gains on recovery hopes Inquirer.net
Forbes - MarketWatchall 1,111 news articles

Maktoob

US Economy: Companies Cut Payrolls at Faster Pace
Bloomberg - 3 hours ago
7 (Bloomberg) -- Reports issued two days before the release of US jobless data showed private employers cut payrolls at a faster pace in December, ...
US corporate sector 'lost 693000 jobs in December' guardian.co.uk
Economic Watchdog, Jan 7 Optionetics
Small, Medium-Sized Businesses Shoulder Job Losses NJBIZ
CEP News - ForexTV.comall 262 news articles

Unlocking encryption—A key to data security
SC Magazine US - 2 hours ago
Maintain universal data recovery. Wherever the encrypted data resides (local backup device, remote data center, offline media, or archive media), ...

Iron Mountain Digital's Connected(R) Backup Solution Adds Support ...
Reuters - Jan 5, 2009
Anytime, Anywhere Data Recovery - Data recovery can be managed with just a few mouse clicks and users have access to their data at anytime, using any PC/Mac ...

Quantum Named a 2009 Best Channel Vendor by Business Solutions ...
CNNMoney.com - Jan 6, 2009
... for data protection and disaster recovery, including deduplication, replication and common management for individual sites or distributed enterprises. ...
CA Chosen as a Best Storage Channel Vendor in Business Solutions ... WELT ONLINE
all 87 news articles

Ways To Recover You’re Lost Data From Computer
Meadow Free Press, ID - Jan 6, 2009
Ideally, you need to back up data to keep your files safe and sound. It is also done to avoid the use of complicated process like data recovery. ...

Steel May Be Poised for ‘Tentative Recovery’: Chart of the Day
Bloomberg - 17 hours ago
Iron ore, a raw material used in steelmakers’ furnaces, has risen 24 percent since Oct. 31, when it reached the lowest in three years, according to data ...

Reuters

Fed staff sees contraction in 2009, moderate recovery in 2010
Channel News Asia, Singapore - Jan 6, 2009
WASHINGTON: Data presented to Federal Reserve policymakers last month indicate an economic contraction for 2009 followed by a "moderate recovery" in 2010, ...
Fed meeting had grim economy report RTE.ie
Fiscal Plans Stimulate the Bulls Barron's
all 688 news articles
data recovery - Google News


PARLOT.COM: Turnkey Money Making websites

I Lost It! Simple Guide To Recovering Corrupted Images And Files

WinUndelete http://www.deprice.com/winundelete.htmWinUndelete? is an easy to use undelete software utility... Read More

Computer Data Recovery Options

Losing files on your computer can be a frightening experience... Read More

Comparing Data Recovery Software

Software programmers recognize the importance of data files, and thankfully,... Read More

The Seven Golden Rules Of Data Backups

Backups of company data are carried out for two main... Read More

The Importance of Data Backups

All computers and their components are subject to failure. In... Read More

Avoiding Hard Disk Data Recovery Services

As a home computer owner, one of the greatest threats... Read More

Data Backup Solution: Why You Need a Backup Plan in Place ? Part 1

Is a data backup solution part of your computer plans?... Read More

The Importance Of Email Backup

Viruses, software failures, power failures, human errors, hard drive failures... Read More

Computer Data Backups: Test Now or Cry Later

If you're like most small business owners, your computer data... Read More

Big Time Disaster Recovery Solutions Available for the Little Guy

There was a time - not too long ago -... Read More

The Best Data Recovery Choice For You

The best defense against a loss of data is a... Read More

Read This Now: Its Not If You Will Lose Your Data, Its When Will You Lose Your Data

With Adware, SpyWare, E-Mail Viruses, Java Script Viruses and Hardware... Read More

Disaster Recovery Made Easy With Online Backups

Whenever disaster strikes the most critical asset that every company... Read More

Backing Up Personal Computers

Backup on business computers is typically not the user's concern... Read More

Data Recovery Processes

Six months ago my computer crashed. When I turned my... Read More

How To Limit Hard Drive Data Recovery Costs

With the value on information rising day by day, one... Read More

Hard Drive Crash? The Essential Data Recovery Report

Your worst nightmare just became a horrifying reality. You keep... Read More

Do You Have The One Key Ingredient Necessary For Disaster Recovery?

It is not rocket science, we all know that we... Read More

Its All In The Planning - Surviving Disaster

ITS ALL IN THE PLANNING - PREPARING FOR THE UNTHINKABLE*... Read More

Learn How To Make Data Backup Over The Internet!

Why should you backup your data on the Internet?There are... Read More

Online Data Backups for Newbies

How long have you been doing business online? Whether you... Read More

HasYour Computer Hard Drive Ever Crashed? Are You Challenged by Backups?

The following scenario's have probably been repeated thousands of times,... Read More

Data Backups ? One Key to Business Survival

Your customer data is a precious resource that can literally... Read More

How To Use Spyware Elimination Software

Spyware elimination software is designed to detect and eliminate spyware.... Read More

Business Continuity and Disaster Recovery - Reducing Your Risk Profile

Like all plans, there is an ultimate goal to achieve.... Read More