Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connectio to a password protected Access database 1

Status
Not open for further replies.

diarratech

Technical User
Jul 7, 2000
41
0
0
FR
The Server Explorer in Visual Basic.Net does let me connect to a password protected Access database using Jet 4.0 OLE DB provider. I have a connection test failure. It works fine without any password.
The same problem occurs using a connection string in code!!
What seems to be the problem?
Thank you for your help
 

specify the password in the connection string

strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/myDB.mdb;Jet OLEDB:Database Password=" + password


 
Thank you very much! The connection string works great now! But I don't know why it was not working with the Server Explorer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top