954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to access password secure database?

hi all,

I am facing small problem in access database .
I am using MS-Access database in our application and i secure it by setting password to my database. But now i want to acces that database through coding in my vb application but it is generating error. So can anybody tell me how to access database which is secured by password.

I write code for that as follows:
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=true;Password=myDatabasePassword;Data Source=" & myDatabasePath

But when i run my application it is generating error.
So can anybody give me proper line of code for accessing ms-access database.

Thanks in advance
Guest11

guest11
Junior Poster in Training
59 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

Hi, Use
ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=MyDB;Persist Security Info=true;Jet OLEDB:Database Password=MyPassword"

selvaganapathy
Posting Pro
547 posts since Feb 2008
Reputation Points: 44
Solved Threads: 100
 

what kind of error?

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

thank you very much selvaganapathy for ur rly my problem is solved .

regards
Guest11

guest11
Junior Poster in Training
59 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You