J
John
Hi
I need to give clients an easy way to compact and repair db when needed, be
it in the form of a desktop shortcut or a form with a button. I need to do
the following steps in one easily automated way;
1. Check that no user is using the database.
2. Either open as exclusive or rename file temporarily to avoid any user
opening db while this is in process.
3. Make a separate copy of the database (just in case and for history).
4. Do the compact & repair.
5. Make the db available to users, by renaming db file back to original or
removing the exclusive lock.
Any help to achieve this for end users with an easy to use interface would
be appreciated.
Thanks
Regards
I need to give clients an easy way to compact and repair db when needed, be
it in the form of a desktop shortcut or a form with a button. I need to do
the following steps in one easily automated way;
1. Check that no user is using the database.
2. Either open as exclusive or rename file temporarily to avoid any user
opening db while this is in process.
3. Make a separate copy of the database (just in case and for history).
4. Do the compact & repair.
5. Make the db available to users, by renaming db file back to original or
removing the exclusive lock.
Any help to achieve this for end users with an easy to use interface would
be appreciated.
Thanks
Regards