Corrupt

accessman2

Registered User.
Local time
Yesterday, 19:12
Joined
Sep 15, 2005
Messages
335
Hi,

I have a question.

I know that mdb file maybe corrupt sometimes, but I want to know what conditions will make it corrupt?

And also, if we create adp file as frontend, and SQL Server as backend, can we mimimize the corrupt condition?

Please let me know about it, thanks.

Because I don't want to happen corrupt.

Thanks.
 
Hello,
As a Virtual Assistant I work with many large databases. Some MS Access Databases would corrupt if you have too many users simultaneously using the database. The problem is that it is hard to define the “too many users”
I’ve had databases working just fine with 20 – 25 users with thousand of entries each day. I’ve also seen database crash with only few users accessing it. A large database can also create a crash! However everything depends on how the database is designed.

The rule # 1 to avoid this is prevention! Make sure you backup your database regularly and make sure every week you compact & repair you database.

If you need any further help with your database needs, please don’t hesitate in contacting us.

Thanks

Joe Serrone
www.joeserrone.com
Virtual Assistant
“Solutions for you Business Needs”
 
Joe's advice is correct but incomplete. Some simple rules apply.

1. Always backup your work. A regular backup operation is not merely a good idea. It should be a mandatory part of any operation that is considered crucial to your business operation. But remember that this doesn't stop ANYTHING from being corrupted. It just limits your losses.

2. In any design, always close what you open. Always delete what you create as soon as you no longer need it. And never create what you don't need in the first place.

3. Murphy's Law says that Anything that can go wrong WILL go wrong. But nobody remembers the second half of that law... (Bet most of the readers of the forum didn't know there WAS a second half.) Part 2: ".. so design your process so that nothing CAN go wrong."

In practical terms, this means that if someone tries to close your database while something critical is active, disallow it from closing. It usually means a lot of work, such as building a "trapping" form and making everyone work from the trap. E.g. what is called a "switchboard" form. You never see the database windows for tables, queries, etc. Just the switchboard. And the switchboard, being a form, can execute code to block an exit/close if the conditions aren't right.

4. One of the best ways to prevent corruption is to undertake an extensive program of user education with a bunch of thou-shalt-not statements. Like

Thou shalt not turn off thy computer without first logging off.
Thou shalt not log off thy computer without first closing Access.
Thou shalt not close Access without first closing open forms and reports.
Thou shalt not let thumb-fingered idiots run your forms and reports.
Thou shalt not let thy network engineer get ANY SLEEP AT ALL if thy network is still flaky.
 
Accessman:

One of the primary causes (although there are others) of corruption is a network disconnection (however quick it may be) while a user is connected to the Access database. Normally, (at least my observation has been) if you are using a frontend/backend situation, the frontend may corrupt if the network disconnection happens (can be just a slight glitch in the network connection) but the backend is usually spared.

So, yes you still run the risk of the Access frontend corrupting when connected to a SQL backend. You won't likely lose any data, other than that being entered when corruption happens. And, if you are planning on using ONE frontend database file for 100 users, you will experience corruption (I can almost guarantee it).

You need to give each user a copy of the frontend, so if theirs gets corrupted, it won't affect the others. Plus, you will find a lot of degrading performance happening when more than about 5 users start being connected in one frontend file.

If you need an easy way to update the frontends on the users computers, you can check out the autoupdating frontend sample I posted in the samples:
http://www.access-programmers.co.uk/forums/showthread.php?t=111132
I've noticed that it doesn't work for everyone (not sure why about that) but you can check it out. Also, some other code has been posted there that might substitute for my solution.
 
I don't believe it would affect the workgroup file.
 
Hopefully we can get someone else to answer as I don't use Access security, (I only used it one time many, many years ago) and so I'm not sure.
 
Access workgroup files should be in a single place for all to share.
 
Nobody can answer that question because no two apps are alike - unless you bought them off the shelf and run them "plain vanilla."

My own viewpoint (and you might not like this, but you need to hear it) is that you can NEVER EVER escape corruption. On my main system (which is not Windows-based), we just had an ORACLE database become corrupted even though no one has used it in days. Because even though it wasn't in use by any users, it was started and stopped by each reboot. And just one time, a little timing glitch popped up with the archive logs.

You do backups to prevent / minimize data loss after a corruption event. And you would do well to plan for them to happen. Because you WILL have corruption events.
 
Also A Hard drive error could cause corruption the odd's of it happening are stacked against Ya so having a good backup policy is vital.

I back up my systems On a local and a remote server plus my laptop holds copies which I use when visiting potential clents but they are still maintained as backups.
 

Users who are viewing this thread

Back
Top Bottom