Solved

How to open access database which is looked in edited mode

Posted on 2011-02-23
7
397 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

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

11 Experts available now in Live!

Get 1:1 Help Now