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:

table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.marketwatch.com/news/story/i365TM-A-Seagate-Company-Joins/story.aspx%3Fguid%3D%257B6303BAAB-468B-4316-AFCF-77198922C0A9%257Dcid=1276856004ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNF0hsXfBwrQWkT0i6n45jHSWu1i9Ai365(TM), A Seagate Company, Joins the ABA Member Advantage b.../b/abrfont size=-1font color=#6f6f6fMarketWatchfont size=-1 class=ima href=/a/fontnbsp;-/font nobr13 hours ago/nobr/fontbrfont size=-1Our offerings include i365 EVault bData/b Protection software and SaaS for backup and brecovery/b; i365 Retention Management solutions for bdata recovery/b, b.../b/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.marketwatch.com/news/story/MaxSP-Provides-Workstation-Coverage-Expanding/story.aspx%3Fguid%3D%257BAE76748C-FA4E-415D-BF79-61470C20C72E%257Dcid=1276897732ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNErlZJ4ObVGS4D67DO3K5u8IO8-sAMaxSP Provides Workstation Coverage Expanding Its Backup and b.../b/abrfont size=-1font color=#6f6f6fMarketWatchfont size=-1 class=ima href=/a/fontnbsp;-/font nobr10 hours ago/nobr/fontbrfont size=-1It is also the most cost effective bdata/b protection system available. It integrates system monitoring, backup, and brecovery/b services in a single appliance b.../b/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.businesswire.com/news/google/20081202005096/encid=1276886197ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNHGeM6YQQDXZzuYZf4I2-KA7M5PvgEASEUS Released EASEUS Partition Manager 3.0 Server With Copy b.../b/abrfont size=-1font color=#6f6f6fBusiness Wire (press release),nbsp;CAfont size=-1 class=ima href=/a/fontnbsp;-/font nobr11 hours ago/nobr/fontbrfont size=-1The company specializes in hard disk management and bdata recovery/b software for Windows OS. Its other major products are bData Recovery/b Wizard Professional, b.../b/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.origin.popularmechanics.com/technology/how_to/4294038.htmlcid=0ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNHk3mQ-uqMrhPnoAbDgaOI33mKMbwDon#39;t Panic! How to Recover bData/b From a Dead Hard Drive/abrfont size=-1font color=#6f6f6fPopular Mechanics,nbsp;NYfont size=-1 class=ima href=/a/fontnbsp;-/font nobr8 hours ago/nobr/fontbrfont size=-1If you find yourself facing a bdata recovery/b job, then you have probably forgotten the cardinal rule of computing: All hard drives eventually fail. b.../b/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.ibtimes.com/prnews/20081202/inmage-systems.htmcid=1277009686ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNGkS9LUGtlM8_rxdarDq28t4ZvoPgInMage Systems Presents Disaster bRecovery/b Solutions at Gartner b.../b/abrfont size=-1font color=#6f6f6fInternational Business Times,nbsp;NYfont size=-1 class=ima href=/a/fontnbsp;-/font nobr14 hours ago/nobr/fontbrfont size=-1Key applications include disaster brecovery/b,operational brecovery/b and application/bdata/b availability. DR-Scout is alsonoted as the pioneer of true event-based b.../b/fontbrfont size=-1a href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.ibtimes.com/prnews/20081202/data-center.htmcid=1277009686ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNGfLiu4oxgNIL44bSJ6cLqWIwDvoAAPC Expands Its Award-Winning Modular Power Solutions Portfolio b.../b/a font size=-1 color=#6f6f6fnobrInternational Business Times/nobr/font/fontbrfont class=p size=-1a class=p href=http://news.google.com/news?sourceid=navclientie=ISO-8859-1rls=GGLG,GGLG:2005-22,GGLG:enncl=1277009686hl=ennobrall 2 news articles/nobr/a/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.marketwatch.com/news/story/VINCI-PLC-Reduces-Data-Recovery/story.aspx%3Fguid%3D%257BD920604D-9AF8-478E-8915-AEB251D72BF7%257Dcid=1274755606ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNE8Wa-_Fp3-1ErrnnqG_TazA-DYgwVINCI PLC Reduces bData Recovery/b Time by Two Thirds With Riverbed/abrfont size=-1font color=#6f6f6fMarketWatchfont size=-1 class=ima href=/a/fontnbsp;-/font nobrNov 26, 2008/nobr/fontbrfont size=-1Following installation of the Steelhead appliances, bdata recovery/b time dropped from 72 to less than 24 hours, and the company has experienced an eight-fold b.../b/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.ibtimes.com/prnews/20081202/server-resource-management.htmcid=1276858371ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNELMdymEIrPhOuaMto95JvmRuOgQgFujitsu Introduces Resource Coordinator Virtual Edition/abrfont size=-1font color=#6f6f6fInternational Business Times,nbsp;NYfont size=-1 class=ima href=/a/fontnbsp;-/font nobr13 hours ago/nobr/fontbrfont size=-1bRecovery/b for high availability - RCVE is more affordable thanclustering - enterprises can choose the same lower cost, highly available,highly reliable b.../b/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.marketwatch.com/news/story/Cancer-Treatment-Centers-Supports-Critical/story.aspx%3Fguid%3D%257B645E2774-DB45-428E-8AAE-6D2D4B0B0FF1%257Dcid=1276580908ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNEV8dv6DIqDTuDeohQv-hYPch0SFgCancer Treatment Centers Supports Critical Oncology Environment b.../b/abrfont size=-1font color=#6f6f6fMarketWatchfont size=-1 class=ima href=/a/fontnbsp;-/font nobrDec 1, 2008/nobr/fontbrfont size=-1In addition, massive storage and server consolidation and automation of bdata recovery/b, backup and restore functions have enabled CTCA to manage its growing b.../b/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.bloomberg.com/apps/news%3Fpid%3D20601087%26sid%3DawB4HfbG3LmQ%26refer%3Dhomecid=1276549336ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNGOBe2jHOruibf1a0dU_zXTN73I6wUS Stocks Advance, Rebounding From Worst Drop Since October/abrfont size=-1font color=#6f6f6fBloombergfont size=-1 class=ima href=/a/fontnbsp;-/font nobr5 hours ago/nobr/fontbrfont size=-1Bank of America Corp., Wells Fargo amp; Co. and Citigroup Inc. advanced at least 9.3 percent to lead a brecovery/b in Samp;P 500 financial shares a day after the b.../b/fontbrfont size=-1a href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.bloomberg.com/apps/news%3Fpid%3D20601087%26sid%3DaZMAtFk0ksGA%26refer%3Dhomecid=1276549336ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNGC8EPEnO1RW9sR_A76nvEMB3yR1wUS Stocks Advance, Rebounding From Worst Drop Since October/a font size=-1 color=#6f6f6fnobrBloomberg/nobr/font/fontbrfont size=-1a href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.bloomberg.com/apps/news%3Fpid%3D20601103%26sid%3DanMAXsOja.uM%26refer%3Duscid=1276549336ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNG0I6yQyeS-mWTKqYwZlu1AtyiTXAUS Stock Futures Fall, Indicate Samp;P 500 May Trim Weekly Gain/a font size=-1 color=#6f6f6fnobrBloomberg/nobr/font/fontbrfont class=p size=-1a class=p href=http://news.google.com/news?sourceid=navclientie=ISO-8859-1rls=GGLG,GGLG:2005-22,GGLG:enncl=1276549336hl=ennobrall 40 news articles/nobr/a/font/div/font/td/tr/table
table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://br.sys-con.com/node/765049cid=1276878981ei=OPA1ScS7O5jI9ASRhJm1DQusg=AFQjCNFAw1xUGX_w8OVKNNEYOjOZVqty3wJMB Companies Turns to SunGard Availability Services for b.../b/abrfont size=-1font color=#6f6f6fSYS-CON Brasil,nbsp;NJfont size=-1 class=ima href=/a/fontnbsp;-/font nobr12 hours ago/nobr/fontbrfont size=-1b.../b a traditional 24-48 hour brecovery/b time frame. SunGard also has technology and systems management services for application and bdata/b center outsourcing, b.../b/font/div/font/td/tr/table
data recovery - Google News


Wind Chimes and more...

Windchimes for great gifts!

9 Things to Look for when Considering Data Backup Solutions

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

5 RAID Data Recovery Prevention Tips

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

Business Continuity and Disaster Recovery - Reducing Your Risk Profile

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

Business Continuity and Disaster Recovery - The Business Continuity and Disaster Recovery Plan

Essentially, the plan addresses the who, what, where, why and... Read More

Is Your Backup Good Enough?

As someone who has seen quite a few hard drive... 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

Bill Gates Made Data Recovery Easy

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

Business Continuity and Disaster Recovery - Selecting A Business Continuity Strategy

The risk analysis and business impact analysis have identified risks... Read More

Hard Drive Crash? The Essential Data Recovery Report

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

The Best Data Recovery Choice For You

The best defense against a loss of data is a... 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 - Risk Analysis and Control

In the risk evaluation phase, there are a number of... Read More

Backing Up Personal Computers

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

Do I Really Need To Backup?

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

Disaster Recovery Made Easy With Online Backups

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

Data Recovery - You Can Get It Back!

Data recovery is a process whereby you can save data... Read More

Data Backups ? One Key to Business Survival

Your customer data is a precious resource that can literally... 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

Learn How To Make Data Backup Over The Internet!

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

How to Effectively Back Up Your Data

What to backup, and what to loseThe oldest "computer expression"... Read More

The Importance Of Email Backup

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

3 Ways Computers Can Hurt Your Ministry - Part 1 - Ineffective Data Backups

Our computers have become almost indispensable ministry tools. What would... Read More

Business Continuity and Disaster Recovery - Business Impact Analysis

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

How Secure Are Online Data Backups?

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

Offsite Data Backup Not Just for Fortune 500 Companies Anymore

In today's high paced digital world there is a very... Read More