N
nagar
I'm trying to open a password protected DB file using this c# code
string connString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=db1.mdb; Jet OLEDBatabase Password=andrea";
OleDbConnection conn = new OleDbConnection(connString);
conn.Open();
The DB is located in the debug folder of the application and the
password is andrea
If I open the DB from Microsoft Access it works fine.
Any idea of what I'm doing wrong?
I get an error telling me that the file doesn't exist. If I remove the
password from the DB and the Password intruction from the connection
string it works fine.
Shall I send you the protected DB1.mdb file?
Thanks.
Andrea
string connString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=db1.mdb; Jet OLEDBatabase Password=andrea";
OleDbConnection conn = new OleDbConnection(connString);
conn.Open();
The DB is located in the debug folder of the application and the
password is andrea
If I open the DB from Microsoft Access it works fine.
Any idea of what I'm doing wrong?
I get an error telling me that the file doesn't exist. If I remove the
password from the DB and the Password intruction from the connection
string it works fine.
Shall I send you the protected DB1.mdb file?
Thanks.
Andrea