Solved

Access Database .ldb file stuck open on network

Posted on 2007-03-20
11
1,582 Views
Last Modified: 2008-02-01
Hi

I have an old database file stored in a folder (that used to be shared) we have moved accross to another database now as we were just testing out some file permission stuff accross the network with this one.

The lock file .ldb is stuck open within this folder and i cant get rid of it. I need to remove the folder, database and .ldb file altogther.

Any thoughts

-s-
0
Comment
Question by:socross
11 Comments
 
LVL 39

Expert Comment

by:stevbe
Comment Utility
your network admin should be able to rip it striaght out whether the NOS thinks there are locks or not :-)

You could also try opening the file that the ldb is for and then close it again to see if it frees up. (you need delete permissions on the folder for that to even be possible).

Last resort ... rebooting the server should clear the lock that is preventing you from deleting it.
0
 
LVL 57

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility
<<The lock file .ldb is stuck open within this folder and i cant get rid of it. >>

  You going to need to kill the session that is holding the lock or reboot the server.  You will be unable to delete the file as long as a lock is being held.

JimD
0
 
LVL 1

Author Comment

by:socross
Comment Utility
The network we are working on is a win xp network, so there is not really a cetrall server just uses a workgroup.

How doi kill the session??

-s-
0
 
LVL 2

Expert Comment

by:adaytay
Comment Utility
Try this: http://ccollomb.free.fr/unlocker/ - I've used in the past to unlock files on client machines where they have been kept open.  Plus, it's free, which is my favourite price for software like this!!

Ad
0
 
LVL 57

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility
<<How doi kill the session??>>

1. Right click on MyComputer
2. Select "Manage"
3. Click on "+" in front of shared folders.
4. Click on "Open Folders"

  Note which user(s) have the file open

5. Click on sessions.
6. Right click on the session(s) and disconnect.

JimD
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 1

Author Comment

by:socross
Comment Utility

Followed you instructions and it appears that there are no seesions open!!

What else would cause this to happen?
0
 
LVL 1

Author Comment

by:socross
Comment Utility
adaytay...

I instlled the unlocker and it confirmed the above by saying that no locking handle found.

-s-
0
 
LVL 84
Comment Utility
<no points for me>

In that case, as Steve suggested, reboot the machine where you found the lockfile, and it should be removed.
0
 
LVL 57

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility
<<What else would cause this to happen?>>

  It means it is opened locally.  You can use the instructions in the following thread:

  http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_22423758.html

  or as everything has said, simply reboot to clear the lock.

JimD
0
 
LVL 1

Author Comment

by:socross
Comment Utility
i have rebooted the machines several times, it wont clear. I have to leave this job for a couple of days now, i will let you know how i get on with you suggestions when i am back on site.

Thanks

Sam
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
Comment Utility
Sam,

<<i have rebooted the machines several times, it wont clear. >>

   There is nothing else involved.  A reboot will always do it (clear a lock).  It's either:

1. You don't have security for the directory/file.
2. Something is locking it again after the reboot.

JimD.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now