I have a window application which tries to connect a MS Access file which is all ready used by another application.
When I stop that application then I am able to connect with MS Access file.
Otherwise an error occurs as follows:
OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "AccessDb" returned message "Cannot start your application.
The workgroup information file is missing or opened exclusively by another user.
Is there any way which I can open a connection in read only mode.
I have to just read data from that file.
Thanks.
Try adding “Mode= Share Deny None” to the connection string of this application that is locking the DB, so that the connection string looks like
This connection string should be used by the application that is currently opening the DB in exclusive mode.