Can't Open Table For Modification

TastyWheat

Registered User.
Local time
Today, 15:20
Joined
Dec 14, 2005
Messages
125
I know why it won't let me, somebody else has the database/table open, but I hate the solution. I'm working on a multiuser database and 3-5 people could have it open at once. I don't modify the backend very often, but when I do it's a pain to walk around the office and ask people to close the database.

Is there a way I can modify the backend while people are using it?

Is it a bad idea (hence the error message)?
 
I'm affraid as a general response you going to have to ask everyone to get out to make certain changes...

However you can work on a development copy at your leisure and then replace the original with the new development stuff all at once to minimize the interuption to the end users...

:)
ken
 
Well if you are using a split FE/BE system you could have a hidden form running in each front end checking for a switch in a table, or the presence of a certain file then have that form close the front end database until your done making changes. There isn't any way I'm aware of that would let you modify a tables design while a user is using it.
 
Part of a good "operations" regimen is to include regularly scheduled down times for any sort of upgrades such as are needed for any living product.

What I did was in my startup form, one of the things that happened was I had a table of down-times scheduled. I could put several events in the list. The form would do a SELECT FIRST ordered by earliest date not in the past. This down-time entry would include a start-time and a stop-time.

If you tried to log in, the startup form would check to see if the current time was between the start and stop times of the event. If so, it would kick you out. If not, it would display the start time of the next down time session and provide a brief description of the reason for the downtime. You would be notified that the database would become unavailable at thus-and-such a date.

The startup form, unlike any other forms, didn't go away. It minimized and hid itself. BUT the code was still running. So... approximately every minute, the hidden form's timer would go off to check for that event time. If the scheduled time became current, the database politely - but FIRMLY - asked you to leave. One minute later, it no longer asked. It just kicked you out. And there is how you manage it. The first few times you kick someone out, they get ticked. After a while they get used to it.
 
I thought maybe there was a way to update the tables using "ALTER TABLE", but I'm willing to accept the fact everyone has to log out first.
 

Users who are viewing this thread

Back
Top Bottom