Locked Database

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.)
 
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;"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top