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:


NYC Data Recovery Services Opens New Park Avenue Office for Local Businesses
Virtual-Strategy Magazine
NYC Data Recovery Services, a subsidiary of Congi Enterprises, opens its second location and begins offering free consultation to new clients seeking data recovery. Helping more New York businesses and individuals recover and restore important data, ...

and more »

Kroll Ontrack Announces Data Recovery Breakthrough on Apple Personal Devices
MarketWatch (press release)
MINNEAPOLIS, May 23, 2012 (BUSINESS WIRE) -- Kroll Ontrack, the leading provider of information management, data recovery, and legal technology products and services, today announced new data recovery techniques to address logical failures, ...

and more »

Kroll Ontrack announces data recovery breakthrough on Apple personal devices
Canada Free Press
MINNEAPOLIS, – Kroll Ontrack, the leading provider of information management, data recovery, and legal technology products and services, today announced new data recovery techniques to address logical failures, or operating system (OS) failures, ...
Citigate wins data recovery firm Kroll Ontrack accountPRWeek UK

all 9 news articles »

California Newswire (press release)

Yodot Software Launches Complete Data Recovery Suite with Yodot Hard Drive ...
Florida Newswire
MOUNTAIN VIEW, Calif., May 21, 2012 (SEND2PRESS NEWSWIRE) — Yodot Software, after launching File Recovery and Photo Recovery tools, brings to you Yodot Hard Drive Recovery Software that can recover data from partitions and drives with all the original ...
Yodot Hard Drive Recovery Software for Windows OS AnnouncedCalifornia Newswire (press release)

all 4 news articles »

Use guide to recover lost files from Android mobile
Appolicious
You can recover those deleted photos,video,music with Android data recovery software. Here are the steps of how to recover your lost Android files with this Android data recovery tool. First, install and run the program on your computer.

and more »

Moneycontrol.com

GLOBAL MARKETS-Euro, shares recover but Greece no nearer solution
Reuters
* European shares rebound from lows in cautious trade * Euro steadies near 22-month low * Euro zone PMI data seen confirming economic slowdown LONDON, May 24 (Reuters) - The euro hovered above a 22-month low and European shares saw a fragile recovery, ...
Ldn FX: Poor EZ PMI, German Ifo Data Weigh On Euro-DollarMNI News
Euro, shares recover but Greece no nearer solutionReuters Africa
Darker economic outlook sends euro lowerCNBC.com
Economic Times -Moneycontrol.com
all 6,545 news articles »

Siliconrepublic.com

EMC and VMware enhance partnership to develop, sell and deliver storage ...
CTR
This new combination help to combine active-active data centers with third site disaster recovery protection, affording customers the high availability benefits of VPLEX AccessAnywhere cache coherency technology and the comprehensive ProtectEverywhere ...
EMC VPLEX Sets New Standard for Hybrid Cloud Availability and ProtectionSacramento Bee
EMC unveils slew of product upgrades, new VMAX arrayPC Advisor
EMC Refreshes VMAX, VNX, Isilon, And Data Domain LinesInformationWeek
SYS-CON Media (press release) -ZDNet (blog)
all 214 news articles »

DriveSavers Recovers Original Director's Cut of Oscar-Winning Film: The Shore
MarketWatch (press release)
NOVATO, Calif., May 22, 2012 (BUSINESS WIRE) -- DriveSavers Data Recovery, the worldwide leader in data recovery services, announced today that it has successfully recovered academy award winning film, The Shore. Produced by the father and daughter ...

and more »

nScaled Named to CRN Virtualization 100 List for Its Comprehensive Disaster ...
SYS-CON Media (press release)
Built using a hybrid cloud architecture, nScaled's solution uses virtualized compute, network and storage to quickly and efficiently let customers recover lost data and failed servers, even entire data centers. nScaled's services enable companies of ...

and more »

Magic Partition Recovery Introduces Content-Aware Analysis, Provides Complete ...
MarketWatch (press release)
KIEV, Ukraine, May 15, 2012 /PRNewswire via COMTEX/ -- East Imperial Soft updates Magic Partition Recovery, its flagship disk and data recovery tool, with content-aware analysis. Content-aware analysis thoroughly analyzes the entire hard drive, ...

and more »
Google News

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

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

Did You Loose Your Windows XP Password? What Should You Have Done Before it Happened?

There is a common problem that happens with lot of... Read More

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 Backups: Test Now or Cry Later

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

Data Recovery - What Not to Do!

Data recovery is a tricky thing, and if you've somehow... Read More

Bill Gates Made Data Recovery Easy

Bill gates provided a ready made option in Microsoft windows,... Read More

Do I Really Need To Backup?

Okay, computers a machine, right? Okay, maybe not yours. You... Read More

How To Use Spyware Elimination Software

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

The Seven Golden Rules Of Data Backups

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

Big Time Disaster Recovery Solutions Available for the Little Guy

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

9 Things to Look for when Considering Data Backup Solutions

It's one thing to loose data and money because of... Read More

How To Limit Hard Drive Data Recovery Costs

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

Business Continuity and Disaster Recovery - Business Impact Analysis

Business impact analysis is a critical part of the business... Read More

Are The Words Business Continuity and Disaster Recovery Planning Rolling Off Your Lips?

It might be more fun to talk about those free... Read More

Data Recovery Processes

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

Want To Beat The Odds? Disaster Recovery Planning is Essential

Statistics show two out of five businesses go out of... Read More

Data Recovery The Easy Way

If you aren't prepared in advance, you will most likely... Read More

5 RAID Data Recovery Prevention Tips

If you have spent the time to increase your computer's... Read More

The Best Data Recovery Choice For You

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

How Secure Are Online Data Backups?

Processing DATA is what all businesses do. Protecting data is... Read More

Backup Schmackup: Im Afraid, Very Afraid!

"Why should you be afraid?", I can hear you ask.I... Read More

How to Effectively Back Up Your Data

What to backup, and what to loseThe oldest "computer expression"... 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

Disaster Recovery Made Easy With Online Backups

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