Locked Database

M

MichaelM

I have a website that uses a backend MS Access database. Everything works
fine for the users the only problem is that the database becomes locked and
there is an associated lock file of dbname.lbd. Normally this is fine but
there are times when we would like to delete and replace the db file. The
only way I have found to get past this problem is to reboot our live
web-server which is not a good idea. After a reboot I am able to do whatever
I need to.

How can I unlock the db and replace it without a reboot?
Any suggestion are greatly appreciated.
 
M

[MVP] S.Clark

Why is it locked? Is there a connection opened by your code that would keep
it locked,
(assuming when no other users are in the database.)
 
M

MichaelM

This is the code we use to create a connection to the database. Do we need
some code that will also close the connection to unlock the database?
Session("LiveConnection") =
"DBQ=F:\Inetpub\Internet.db\aims.mdb;DefaultDir=F:\Inetpub\Internet.db\;Driver={Microsoft
Access Driver (*.mdb)};DriverId=25;FIL=MS
Access;ImplicitCommitSync=Yes;MaxBufferSize=512;MaxScanRows=8;PageTimeout=900;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;"
 
Top