473,513 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to unlock database

dima69
181 Recognized Expert New Member
I have an application with data on the server. Sometimes this data file remains locked even after all users exited the applcation. So the only option now is to restart the server, which is undesireble.
The question is if there is another way to unlock the data file, whithout restarting the server ?
Oct 29 '06 #1
2 40471
NeoPa
32,557 Recognized Expert Moderator MVP
First look at the LDB file (Just use Type MyDB.Ldb or whatever from the 'Command Prompt' or from 'Run') to see who has it locked.
Check carefully all entries in the list (sometimes it is open by people or PCs you wouldn't expect.
When you've cleared these all down and it still has entries (possible as it doesn't handle some crashes v well) then you need to look at unlocking the file from an OS point of view.

This gets a bit technical so hold on.
Open 'Computer Manager' from the Admin Tools folder.
If it's not stored on the local PC but a server somewhere then right-click on the top line 'Computer Management (local) and 'Connect to another computer...'. Select the server from the Browse list.
Select 'Shared Folders' then 'Open Files'.
Find the LDB file in the list then, from the right-click menu, select 'close'.
When the file is no longer in the list (F5 to refresh), delete the LDB file.

That should free it up for you.

If you get stuck on any of this then post back here explaining where and I'll try to clarify.
Oct 29 '06 #2
dima69
181 Recognized Expert New Member
Thanks, NeoPa. It works like a magic !
But, although a great improvement from restarting the server, still looking for something better. So my next questions are:
1. Is there any way to automate this process of ldb release ? It can be quite difficult to explain the customer about this computer manager thing.
2. Is it possible to do something without accessing the server directly ? The customer may not have that access.
Oct 30 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
4501
by: John | last post by:
I've got multiple threads and processes that write to same file. Before writing all threads / processes first lock part of file and then write to file. If one thread / process locks file, another...
1
3186
by: deko | last post by:
Is there a way to unlock a table so a subroutine can complete? frmMain!frm0 has got a lock on a table I need to do stuff with. Error Number 3211: The database engine could not lock table...
2
3862
by: Unlock | last post by:
Greetings, Any expert able to help me to unlock the database at http://www.generate.netfirms.com/cgi-bin/to.cgi?l=res04 You will need to download the database which I have compressed into a...
3
2444
by: m | last post by:
Hi, I'm running MySQL (5.0.18-nt) on WinXP with latest patches. I've some SQL code that generates an 'ERROR 11' in two different places depending on how the code is submitted. At the moment...
0
1461
by: Petra | last post by:
Hi! I don't know how to handle the following problem: When a User clicks on the detail view of an item, I lock the item in the database. If the user exits with clicking the cancel or ok button...
6
10553
by: kennthompson | last post by:
What is the best way to mirror mysql on a remote server for backup in case the local server is down?
1
3208
by: =?Utf-8?B?c3VqaXRo?= | last post by:
i created a windows service. it uses a db which attaches a mdf file. i created a installer for this service. it is installed successfully also. but the problem is while i uninstall the...
3
3695
by: Kinnari | last post by:
Hello, My company has an access database 1997 (.mdb) that has been left behind by a previous programmer. Now, this programmer has locked this database. I can not update reports and can not read VB...
1
3981
by: BPacey | last post by:
I have created a database that will be used among many users. In order to protect the data, I am trying to create a checkbox that can either lock or unlock the forn and subform for editing. It would...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.