P
Paul
Is there any way to unlock a back end database file?
I understand that one answer is to get all the users that are linked to it
to close down. However, we're tried that and the file will sometimes remain
locked for a few days.
We're using Access 2003 in a multi-user environment, and every night we
import data from other databases, then compact and repair the back end mdb
file. To ensure that all the users close down their front end file at the
end of every day, I have a timer event in a hidden form that checks the name
of a file on the network server every 30 minutes. If the extension of that
file name is "yes", it closes down. If it's "no", it does nothing.
This works great 99% of the time. All the user front ends close down, the
ldb file disappears and the back end file can be compacted and repaired.
However, every couple of months, this technique doesn't succeed, and the
back end remains locked for several days, during which time we can't compact
and repair it, (because it won't run the compact and repair operation while
it's locked). Thus far the locking never lasts for more than a few days,
after which it will mysteriously unlock itself, and we can resume normal
maintenance operations.
My biggest concern is that it may reach the point where it never unlocks,
and just keeps getting larger over time. I've noticed that even while it's
locked I can copy the back end file to another folder (and copy and repair
the new copy), but I can't delete or copy over the locked file. It would
be great if there were some way to force it to unlock, so we could compact
and repair it every night. Alternatively, if there were a way to delete or
copy over the file, then we could replace it with the copy that was
compacted and repaired in another folder.
Is there any way to solve this problem of the back end mdb file that remains
locked?
Thanks in advance,
Paul
I understand that one answer is to get all the users that are linked to it
to close down. However, we're tried that and the file will sometimes remain
locked for a few days.
We're using Access 2003 in a multi-user environment, and every night we
import data from other databases, then compact and repair the back end mdb
file. To ensure that all the users close down their front end file at the
end of every day, I have a timer event in a hidden form that checks the name
of a file on the network server every 30 minutes. If the extension of that
file name is "yes", it closes down. If it's "no", it does nothing.
This works great 99% of the time. All the user front ends close down, the
ldb file disappears and the back end file can be compacted and repaired.
However, every couple of months, this technique doesn't succeed, and the
back end remains locked for several days, during which time we can't compact
and repair it, (because it won't run the compact and repair operation while
it's locked). Thus far the locking never lasts for more than a few days,
after which it will mysteriously unlock itself, and we can resume normal
maintenance operations.
My biggest concern is that it may reach the point where it never unlocks,
and just keeps getting larger over time. I've noticed that even while it's
locked I can copy the back end file to another folder (and copy and repair
the new copy), but I can't delete or copy over the locked file. It would
be great if there were some way to force it to unlock, so we could compact
and repair it every night. Alternatively, if there were a way to delete or
copy over the file, then we could replace it with the copy that was
compacted and repaired in another folder.
Is there any way to solve this problem of the back end mdb file that remains
locked?
Thanks in advance,
Paul