All,
I want to run a compact on my backend database just after 5pm unattended.
If a user is linking to the database I want to compact I can't so get an error message. I've developed a method to send a message to the user asking them to log out, the problem I have is this:
If two users are logged in the LDB file shows both users currently using the database. When the first user logs out they are still shown in the ldb file. Therefore my compact process is still reporting them as using the database and sending them another message instead of seeing the second user and asking them to log out.
If another user access the database then user one is removed from the file and user 3 is added (is this making sense?).
How can I refresh the ldb file so users that log out are removed without the need for another user to access the file (unless that other user is me through code!)? I've tried using the OpenDatabase method however, no ldb file was produced.
If anyone understands what I'm trying to do pointers would be appreciated.
TIA
Dan
I want to run a compact on my backend database just after 5pm unattended.
If a user is linking to the database I want to compact I can't so get an error message. I've developed a method to send a message to the user asking them to log out, the problem I have is this:
If two users are logged in the LDB file shows both users currently using the database. When the first user logs out they are still shown in the ldb file. Therefore my compact process is still reporting them as using the database and sending them another message instead of seeing the second user and asking them to log out.
If another user access the database then user one is removed from the file and user 3 is added (is this making sense?).
How can I refresh the ldb file so users that log out are removed without the need for another user to access the file (unless that other user is me through code!)? I've tried using the OpenDatabase method however, no ldb file was produced.
If anyone understands what I'm trying to do pointers would be appreciated.
TIA
Dan