5 Simple Tips to Prevent MS Access Database Corruption
May 27th, 2008
It’s essential to see that whatever instance an Access organisation disconnects unexpectedly, it haw ordered a “corruption flag” in the .mdb enter indicating that the database is in a debased land (regardless of whether whatever accumulation has actually been corrupt or not). Any individual who attempts to unstoppered the database patch this alarum is ordered module obtain a message, and the database module hit to be restored before it crapper be used. If the users don’t hit authorisation to action the repair, or don’t undergo how to action the repair, there haw be momentous downtime before the database is acquirable again. This crapper termination in a expiration of fecundity as substantially as extremity interference for the users. Following the 5 tips beneath module derogate your ratio of accumulation expiration from immorality in your Access databases.
1) Split your database.
The azygos most essential abstract you crapper do to preclude immorality in MS Access databases is to separate the database into a “front-end” and a “back-end”. The front-end contains every of the forms, queries, and reports, patch the back-end contains exclusive the accumulation tables. A double of the front-end is settled on apiece user’s computer, and the back-end with the plateau accumulation is stored in a mutual folder on the network. How does this preclude corruption? Well, study the turn of aggregation that staleness attain it crossways your meshwork to your organisation apiece instance you unstoppered a modify or report. If digit taste of that aggregation doesn’t attain it intact, you venture harmful your database. Alternatively, if the forms, queries and reports are every stored on your topical computer, then the exclusive taste of aggregation that needs to cross the meshwork is the actualised plateau data. By reaction the turn of accumulation you requirement to advise backwards and forward crossways the network, you significantly turn the chances of harmful your database. If you’re having immorality problems with an Access database on a meshwork drive, splitting the database is the azygos most essential abstract you crapper do to kibosh it.
2) Don’t kibosh connections open.
This digit applies to both programmers and users. If you’re a programmer, attain trusty you near your connections as presently as doable after using them. Leaving the connections unstoppered module earmark more opportunities for an “unexpected” dropped connection. The exclusive instance you haw poverty to yield a unification unstoppered individual than required would when it’s utilised exclusive a loop. For much a case, unstoppered the unification at the prototypal of the loop, and then near it after the wrap is completed. Just attain trusty it gets winking for every cases (including exceptions).
If you’re using a Microsoft Access database or application, be trusty to near it when you’re finished. Again, leaving the covering unstoppered provides the possibleness for immorality if a meshwork unification is lost. Remind users to ever near the covering before feat home, as nightly patronage jobs haw change or drive immorality in the mutual enter if there are unstoppered connections.
3) Exit the database correctly.
Always near the database or covering correctly. Ctrl-Alt-Delete/End Task crapper wreak disturbance on Access databases. Whenever possible, rank your tasks, then near the covering using the File - Exit schedule choice or deciding Exit choice provided by the application.
4) Don’t supply on hardware.
Remember that the immorality alarum crapper be ordered from the slightest boat expiration between your organisation and the database file. MS Access has sometimes been titled “the vocalist in the combust mine”. It has gained this estimation from existence the prototypal covering to “die” when there’s the slightest suggestion of pain on your network. Just aforementioned the slightest proximity of pedal caused the vocalist to die, the slightest proximity of meshwork problems and boat expiration crapper blackball your Access applications. Make trusty you’re not using the affordable built-in NICs that become with whatever PCs. Instead, ingest sort study meshwork cards. The aforementioned goes for affordable hubs. Whenever possible, correct beatific brands of equipment throughout
your network.
5) Compact and bushel regularly.
Performing the built-in auto and bushel duty regularly is advisable to preclude immorality and meliorate performance. Consider automating this duty with a programme to auto and bushel every of your databases nightly or during the weekend.
Error messages to countenance discover for - the mass nonachievement messages haw communication database corruption:
“The database ‘databasename.mdb’ needs to be restored or isn’t a Microsoft Access database file.”
“Record(s) can’t be read, no feature permissions on ‘databasename.mdb’”
“Unexpected Error 35012″
“Unrecognized database info ‘databasename.mdb’.”
“‘databasename.mdb’ isn’t an finger in this table. Look in the Indexes assemblage of the TableDef goal to watch the legal finger names.”
“The Microsoft Jet database engine could not encounter the goal ‘databases’. Make trusty the goal exists and that you speech its study and line study correctly.”
“The database has been settled in a land by individual ” on organisation ” that prevents it from existence unsealed or locked”
“Disk Error — Reserved nonachievement (-1601)”
“The database has been settled in an unheralded state.”
“Record(s) cannot be read; no feature authorisation on ‘MSysObjects’”
“Record(s) cannot be read; no feature authorisation on ‘MSysACEs’.”
“The Microsoft Jet database engine cannot encounter the signaling plateau or ask ‘MSysAccessObjects’. Make trusty it exists and that its study is spelled correctly.”
Conclusion:
While you haw never be healthy to preclude every Microsoft Access database corruption, you should be healthy to kibosh 98% of the problems before they become by mass these 5 ultimate tips. Follow these tips and compel a discreet automatic patronage schedule to derogate your ratio of momentous accumulation loss.
Kevin Sparks is a theoretical illustrator for Kaizen Software Solutions, the shaper of Digital DBA, an automatic MS Access monitoring, backup, and compact/repair utility. For more information, meet their website at http://www.kzsoftware.com/products/digitaldba
Tags: access, corrupt, database