Click here to Skip to main content
15,917,565 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello,

I am Trying to Connect to an Access Database Which is Already Opened for other Purpose.
I think the Database is Exclusively Locked.
I have no Permission to Change the Accessiblity.
I have to Get the Live data From the Databse.

Is there any Method for Cloning the database so that whenever the Original DB sis Updated, it automatically gets Updataed in my (Clonned) Database?

Or is there Any Other Method to Connect to already Connected Access database Using C#.

Thanks in Advance.

Kindly Reply.

Lakshman
Posted

No, there is no cloning available in Access. There is also no notification service that will tell you the data has been updated. You have to poll for whatever changes you want, but that also means your database design must change to accomodate this.

The file is locked exclusively by Access when it's open. You cannot even copy the file since the copy operation won't be able to open it to read the file.
 
Share this answer
 
Create a new Access-database, and import the tables into there using the "link table" wizard. Description of setting up table-links can be found here;

Link to external data[^]

You'll need the part that says "Link to data in another Access database" :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900