Cannot open a password protected access database

G

Guest

I am unable to open a password protected Access Database programtically.

I have office 2003 installed on my machine.
I am using the OleDb namespace in C#.
I can open the database in access.
I can open the database programatically if I remove the password.

Here are the last 3 connection strings I've tried, with the Execption text
that was generated for them.
 
G

Guest

Sorry, I must of forgotten to paste the connection strings.


Connection String:
Provider=Microsoft.Jet.OLEDB.4.0;C:\dev\src\pjax\RoadPay\DataFiles\roadpay.mdb;Jet OLEDB:Engine Type=5;Jet OLEDB:Database Password=mud;
Exception: Could not find installable ISAM.

Connection String:
Provider=Microsoft.Jet.OLEDB.4.0;C:\dev\src\pjax\RoadPay\DataFiles\roadpay.mdb;Jet
OLEDB:Engine Type=5;Jet OLEDB:Database Password=mud;Persist Security
Info=True;
Exception: Could not find installable ISAM.

Connection String:
Provider=Microsoft.Jet.OLEDB.4.0;C:\dev\src\pjax\RoadPay\DataFiles\roadpay.mdb;User
ID=Admin;Jet OLEDB:Engine Type=5;Jet OLEDB:Database Password=mud;Persist
Security Info=True;
Exception: Could not find installable ISAM.
 
F

Fredrik Wahlgren

John said:
Sorry, I must of forgotten to paste the connection strings.


Connection String:
Provider=Microsoft.Jet.OLEDB.4.0;C:\dev\src\pjax\RoadPay\DataFiles\roadpay.m
db;Jet OLEDB:Engine Type=5;Jet OLEDB:Database Password=mud;
Exception: Could not find installable ISAM.

Connection String:
Provider=Microsoft.Jet.OLEDB.4.0;C:\dev\src\pjax\RoadPay\DataFiles\roadpay.m
db;Jet
OLEDB:Engine Type=5;Jet OLEDB:Database Password=mud;Persist Security
Info=True;
Exception: Could not find installable ISAM.

Connection String:
Provider=Microsoft.Jet.OLEDB.4.0;C:\dev\src\pjax\RoadPay\DataFiles\roadpay.m
db;User
ID=Admin;Jet OLEDB:Engine Type=5;Jet OLEDB:Database Password=mud;Persist
Security Info=True;
Exception: Could not find installable ISAM.

I think you should be able to find the right syntax here:
http://www.connectionstrings.com/

/Fredrik
 
G

Guest

Fredrik Wahlgren said:
Provider=Microsoft.Jet.OLEDB.4.0;C:\dev\src\pjax\RoadPay\DataFiles\roadpay.m
db;Jet OLEDB:Engine Type=5;Jet OLEDB:Database Password=mud;

I think you should be able to find the right syntax here:
http://www.connectionstrings.com/

/Fredrik

I swear I thought i tried that.
Guess not cause it worked.
Thanks man, your a life saver.

-John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top