Connectionstring

G

Guest

In my VB.Net project when I access an Access database without setting any
password, everything works fine. However, when I set the password and use
this connectionstring

"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\myproject\mydatabase.mdb;Jet OLEDB:Database Password=test;"

I get message, "invalid password".

My password is "test". When I open Microsoft Access I have to enter this
password "test" then only I can see my database. However, when I try to
access thru code it says "invalid password". However if remove the password
and change the connectionstring to as follows everything works fine.

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\myproject\mydatabase.mdb;"

What's the problem ?

Thanks in advance.
 
C

Cor Ligthert

Patang,

Did you tried it with adding a user id.

";User Id=admin;Password=Test;"

I hope this helps,

Cor
 

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