Click here to Skip to main content
15,868,000 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The code below connect well to the database without password but i want to password the database for the connection.pls help me out

Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=C:\Users\BELLCONSULT\Documents\COUNCILS.mdb"
       Dim cn As OleDb.OleDbConnection = New OleDb.OleDbConnection(strConnection)
       cn.Open()
Posted

 
Share this answer
 
v2
Use this:
Provider=Microsoft.Jet.OLEDB.4.0;Password=secret;User ID=Admin;Data Source=D:\My Documents\db2.mdb
 
Share this answer
 
Comments
jaideepsinh 3-Jul-13 8:18am    
 
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