Click here to Skip to main content
16,020,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I has a Access database ...that is password protected....
I am connecting in this manner given as follow .......(Without password protection)


cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\My Documents\db2.mdb")

cn.Open()
///codes.......

cn.close()
Posted

Consult with this[^].
 
Share this answer
 
Comments
Neeil 18-Nov-10 2:00am    
how can i create a setup with this password protected database,,,,,
It's an Access database, which is just in a file. All you do is put the database file in the folder of your Setup and Deployment project where your application expects it to be.

Though, if protecting the data was that important, I wouldn't be using an Access database.
 
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