PC Review


Reply
Thread Tools Rate Thread

Detecting Corruption Flag & Closing DB

 
 
wrldruler
Guest
Posts: n/a
 
      1st Jun 2007
I've got a DB with about 200 records and sometimes 5 consecutive
users. I have started getting daily "database needs to be repaired"
errors. After an abundant amount of reading on this forum and others,
I have concluded it is likely a flaky network that is causing the
issue.

One of my users was inside a query. She got a "Unrecognized database
format" error. This must have thrown the "corruption flag" because I
then could not get into the DB due to the "database needs to be
repaired" error. A few minutes later she reported "Looks like the DB
is OK now" and she continued doing updates. But I still got the "needs
to be repaired" error when I tried to open the database.

Of course, I cannot repair the database because there are still users
inside of it, still making updates successfully. And I don't feel like
looking up all of their workstation IDs and calling them. Especially
seeing they may be at a meeting and just left the DB open. It
frustrates me that Microsoft would detect a corruption, lock incoming
users out, but allow the users already in the database to continue
like nothing is wrong, thus locking the DB and preventing a repair to
be done.

So I have added 2 functions -- one that detects idle time and closes,
and the other is a "Kill" button that flips a field in a table, and
the timer on a hidden form checks for this kill demand and shuts the
DB down.

The problem is that when the DB needs to be repaired, I cannot get
into the database to flip the Kill switch. The kill command has to be
delivered by whatever lucky user(s) are in the DB at the time of the
corruption.

What I would like to do is find a way for the DB to detect the
corruption flag has been thrown, and then automatically throw the kill
command, everybody is booted out, and I or the first person back in
can easily run the repair. So does anybody know how an already opended
DB can detect the corruption flag has been thrown?

Or, does anybody know how I can get into a DB that is in need of
repair and throw the Kill switch? i tried using Linked Tables, but all
I get is a DB unrecognized error.

Thanks,

Chris

 
Reply With Quote
 
 
 
 
wrldruler
Guest
Posts: n/a
 
      6th Jun 2007
ttt

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assistance with detecting and closing app =?Utf-8?B?Q2hyaXM=?= Microsoft Dot NET 1 1st Oct 2007 09:10 AM
Corruption Flag bootybox via AccessMonster.com Microsoft Access Form Coding 2 19th May 2007 08:19 PM
Filesystemwatcher detecting File Closing. How ? Sagaert Johan Microsoft C# .NET 3 6th Mar 2005 10:04 PM
detecting the session closing Russell Microsoft ASP .NET 5 26th Jan 2005 07:00 PM
Detecting When An MDI Child Is Closing Mike Microsoft Dot NET Framework Forms 8 10th Sep 2003 03:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 AM.