[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 493
  • Last Modified:

copy access file still locked

hey guys, i'm putting an access file on a network where it will be accessed by many people at the same time. i've used a force shutdown mechanism BUT in the event that something screws up and the network access file always has an .ldb file, are there any problems if i just copy the mdb file to my desktop, delete both the .mdb and .ldb file from the network and then just compact and repair the mdb file on my desktop before putting it on the network?

what i think is that i'll lose some data on the ldb file but it's ok in this case that i lose that data. i'm just trying to find a way to reset the database should it become corrupted.
0
developingprogrammer
Asked:
developingprogrammer
  • 2
1 Solution
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
<<are there any problems if i just copy the mdb file to my desktop, delete both the .mdb and .ldb file from the network and then just compact and repair the mdb file on my desktop before putting it on the network? >>

 There's no need to copy the MDB file to a local drive, but it may be faster.   And while those are the basic steps, you many find that your unable to delete the LDB file.
 
 The answer to that is a reboot.  If you can't reboot, then the file handle needs to be closed manually.  You can look at this old thread:

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

 To see how to do that.  There are a few ultities out there that do the same thing.

  The .LDB by the way contains no other data then a list of the station names and users that are currently connected or were connected and left the DB corrupt.  With all users out, you can delete it at any time without loosing anything.

 Last comment on "force shutdown", hopefully that's built into the app and your allowing the clients to exit gracefully.  If your forcing them out by severing their connections, you don't really want to do that.

Jim.
0
 
developingprogrammerAuthor Commented:
Hi Jim, thanks so much for your help and for directing me to the other resource too.

I don't have access to the server computer and have never used windows server before so I'm completely clueless about any server things. I'm just a very beginner programmer and a user of a network folder as it turns out haha. So from my point of view, how do I delete a corrupt database along with its ldb file so I can re upload the working database?this deleting the ldb file is something I'm always very scared of haha
0
 
developingprogrammerAuthor Commented:
Oops Jim, I think this question has been answered like a few hundred times on experts exchange already and it's just sheer silliness and laziness that I didn't check before that. Those are two qualities a developer must never have so I am closing this thread and getting off my arse = ) but thanks for your help Jim!! Much appreciated!!!!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now