Avatar of Michael Dean
Michael Dean
Flag for United States of America asked on

Record Lock on Database will not go away

I have a Backend Access Data Base, that has an associated Record Lock File, yet noone is logged into the database.  Every time I try to delete it it says another user has the DB. However I do not see who that person is.

How do I find out who has it locked.
Microsoft Access

Avatar of undefined
Last Comment
Jim Dettman (EE MVE)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
PatHartman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Michael Dean

ASKER
i have rebooted the server and still it shows being locked?
John Tsioumpris

Check your antivirus on both your machine and server....disable them and try again...
PatHartman

Did you try deleting the lock file after the reboot?  Rebooting won't delete the file but it should kill what ever process was locking it.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Michael Dean

ASKER
Hi Yes i did try and delete it after reboot
Michael Dean

ASKER
Thank you that worked
PatHartman

It's a little pesky and most network admins are loath to reboot a server if they don't have to.  You just have to convince them to do it but in your case, you were lucky enough to have the power to do it yourself.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Michael Dean

ASKER
Yes  now on to my bigger issues
Jim Dettman (EE MVE)

Couple other comments:

1. A LDB will also get left behind if a user abnormally disconnects from the DB.  As Pat said, all users should have delete priv's.   Check this and then if the LDB continues to get left behind, you've got other issues.

2. It is possible to release the lock on the LDB without rebooting the server.   If it's a network connection, you just have to close the session.  That's done from Computer Managernt, Files and Shares.

  If the lock is from a local logon, then you would need to use something like process Explorer that can find the handle and kill it.

Jim.