Hi all,
I'm tring to connect to a password protected microsoft access mdb file and I get an error about the data base being opend exclusevly by another user. The thing is that the db is on my disk and is not opened.
The connection string is like this:
The thing is that if I try to open a mdb file that has no password and I remove the part about User Id and Password from the conn string it works.Code:OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" + "User Id=admin;Password=xxx;Jet OLEDB:Engine Type=5;Persist Security Info=True;" + "Data Source=C:\\Documents and Settings\\Mihai\\Desktop\\Imobiliare\\Vita\\BD\\anunturi.mdb");
Can someone help me out?
Thank you!





Reply With Quote