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


MORE RESOURCES:

iTunes Data Recovery can help users get back lost data for iTunes in an easy way
Appolicious
iTunes Data Recovery can help users get back lost data for iTunes in an easy way, recover iPhone/iPad/iPod data like recover videos, audios, photos, the iTunes Data Recovery is just the right choice for you. Recover deleted/lost iPhone Photos, ...



Yodot Software Launches Complete Data Recovery Suite with Yodot Hard Drive ...
Florida Newswire
With the launch of this data recovery utility the Yodot recovery line of products now has a complete advanced suite of data recovery tools for any Windows OS user. If you have deleted a partition, formatted a partition, or changed the file system on a ...

and more »


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 »


Send2Press Newswire (press release)

Yodot Software Launches Complete Data Recovery Suite with Yodot Hard Drive ...
Send2Press Newswire (press release)
With the launch of this data recovery utility the Yodot recovery line of products now has a complete advanced suite of data recovery tools for any Windows OS user. If you have deleted a partition, formatted a partition, or changed the file system on a ...

and more »


Stellar Phoenix Releases PDF Repair v1
prMac (press release)
[prMac.com] Edison, New Jersey - Stellar Data Recovery renowned for data recovery products & services today launched its new PDF Repair for Mac, an advance tool that repairs corrupt or damage portable document format (PDF). The software embarks useful ...



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 »


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.



Magic Partition Recovery Introduces Content-Aware Analysis, Provides Complete ...
Sacramento Bee
By East Imperial Soft 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, collecting information about files, ...



Kroll Ontrack Dispels Biggest Enterprise Data Recovery Myths
MarketWatch (press release)
MINNEAPOLIS, May 01, 2012 (BUSINESS WIRE) -- Kroll Ontrack, the leading provider of information management, data recovery, and legal technology products and services, today announced the top five data recovery myths. From concerns over cost, ...

and more »


IT PRO

Kroll Ontrack signs storage consolidation deal with HDS
IT PRO
By Rene Millman, 22 May 2012 at 13:52 Data recovery expert Kroll Ontrack has deployed a range of Hitachi Data Systems' products to help virtualise and consolidate its storage environment. The company has implemented Hitachi's Virtual Storage Platform ...


Google News

Acne - Advertising - Aerobics & Cardio - Affiliate Revenue - Alternative - Attraction - Auction - Audio Streaming - Aviation - Babies & Toddlers - Beauty - Blogging & RSS - Book Marketing - Book Reviews - Branding - Breast Cancer - Broadband Internet - Muscle Building - Careers & Employment - Coaching - Coffee - College & University - Cooking Tips - Copywriting - Crafts & Hobbies - Creativity - Credit - Cruising & Sailing - Currency Trading - Customer Service - Data Recovery - Dating - Debt Consolidation - Debt Relief - Depression - Diabetes - Divorce - Domain Names - E-books - Ecommerce - Elder Care - Email Marketing - Entrepreneurialism - Ethics - Exercise - Ezine Marketing - Ezine Publishing - Fashion & Style - Fishing - Fitness Equipment - Forums - Games - Goal Setting - Golf - Grief Loss - Hair Loss - Happiness - Hardware - Holidays - Home Improvement - Home Security - Humanities - Humor - Innovation - Inspirational - Insurance - Interior Decorating - Internet Marketing - Investing - Landscaping & Gardening - Language - Leadership - Leases & Leasing - Loans - Lung, Mesothelioma & Asbestos - Management - Marketing - Marriage & Wedding - Meditation - Mobile & Cell Phone - Mortgage & Refinancing - Motivation - Motorcycles - Music - Negotiation - Network Marketing - Networking - Nutrition - Organizing - Outdoors - Parenting - Personal Finance - Personal Tech - Pets - Philosophy - Photography - Poetry - Politics - Positive Attitude - PPC Advertising - Press Release - Pregnancy - Presentation - Psychology - Public Speaking - Real Estate - Recipes - Relationships - Sales - Sales Management - Sales & Teleselling - Sales Training - Satellite TV - Science - Security - SEO - Site Promotion - Small Business - Software - Spam Blocker - Spirituality - Stocks & Mutual Funds - Strategic Planning - Stress Management - Structured Settlements - Success - Supplements - Taxes - Team Building - Time Management - Top7-Or-10-Tips - Traffic Building - Vacation Rentals - Video Conferencing - Video Streaming - VOIP - Wealth Building - Web Design - Web Development - Web Hosting - Weight Loss - Wine & Spirits - Writing - Writing Articles - Yoga

Top
Main Home Email Category Home