Click here to Skip to main content
15,891,031 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

i am trying to connect to the Database.

Database is MS Access DB.

On Connection.Open is fired, An Exception mentioning Unable to Connect, Already in Use is Raised.

How can i Connect to the Database which in Already in Use;
What will be the Connection String?

Thanks and regards

Lakshman
Posted

Without knowing the exact error message it is guess work to some extent, but the most likely reason is that the database is already open for exclusive access by another process / thread / computer. Find which, and stop it being exclusive!
 
Share this answer
 
you can check whether connection is open or not
through code.
 
Share this answer
 
May be your Access database in modify mode(I mean you are changing structure of any table in database in another window). So save & close the database & try again.

If not please let us know the complete details.
 
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