Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Access Database .ldb file stuck open on network

Posted on 2007-03-20
11
1,685 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
ID: 18755560
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
ID: 18755598
<<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
ID: 18755830
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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 2

Expert Comment

by:adaytay
ID: 18755870
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
ID: 18755962
<<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
 
LVL 1

Author Comment

by:socross
ID: 18756111

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
ID: 18756117
adaytay...

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

-s-
0
 
LVL 84
ID: 18756251
<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
ID: 18756353
<<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
ID: 18756938
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
ID: 18756963
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 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