Solved

copy access file still locked

Posted on 2013-05-16
3
436 Views
Last Modified: 2013-05-16
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
Comment
Question by:developingprogrammer
  • 2
3 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 39170994
<<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
 

Author Comment

by:developingprogrammer
ID: 39171971
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
 

Author Comment

by:developingprogrammer
ID: 39172031
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

10 Experts available now in Live!

Get 1:1 Help Now