Solved

How to open access database which is looked in edited mode

Posted on 2011-02-23
7
431 Views
Last Modified: 2012-05-11
I have access database which is used by some programe, and this programe is looking the database so no one can connect to it or even open it using MS access.

Is there any way to connect to the database using c# without closing that program?
0
Comment
Question by:Suma5566
  • 3
  • 3
7 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 34964113
No.
0
 
LVL 9

Accepted Solution

by:
borki earned 500 total points
ID: 34964494
Access is designed to be a multi user program. I am not sure what you mean with "locked in Edit Mode".

If the Access DB is opened in "Default" mode, then, if a user opens a particular table in Design View, other users can't open that table in design view. Also, you should still be able to query and work on other tables.

If you open the DB in "Exclusive" mode, anyone else receives a "file in use" message.

Another option is to open the DB in "Exclusive Read-Only" mode, where you grant other users read-only access to the DB.

You could also make a copy of the .mdb file and operate on it, as access control is done via the .ldb file.
0
 

Author Comment

by:Suma5566
ID: 34964576
Great, thanks so much.

I'll consider copying the database.

Thanks.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 44

Expert Comment

by:AndyAinscow
ID: 34967574
There are other possibilities but all required making changes to the other program - which you seemed to exclude.
Note the answer you accepted does say pretty much what I said - no.
0
 

Author Comment

by:Suma5566
ID: 34968435
i cannot change that application since it has been developed by some company.
all i needed is to read dome data from that database.
i may write some code to kill that applications process and then start it again after i finish reading from it.
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 34968483
>>Is there any way to connect to the database using c# without closing that program?

Answer - No.
0
 

Author Comment

by:Suma5566
ID: 34972125
I found a solution.

I opened the database file ib MS Access and made database split, which will make another file that i can connect to.

:)
0

Featured Post

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)

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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…

726 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