0
votes

When program connect to db without password it connect and its works for read or write data on db. I encrypted the db with password but the connection does not work. make this error Cannot open database . It may not be a database that your application recognizes, or the file may be corrupt. I installed the access database engine 2007 and 2010 but its not working. I have 2013 office and 8.1 OS. I need to connecting with password? the connection string :

<add name="con" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\visitor_db.accdb;Jet OLEDB:Database Password=2015;"/>
1
Please take a moment to read this carefully: How to Ask - Ňɏssa Pøngjǣrdenlarp
Hi welcome to SO, There are a few things you should note specifically 1) Titles should give the basic information about your problem - Salutations like "hi" have no place there (or, anywhere in a question for that matter). 2) You should explain your problem fully, including any error mressage you see - "doesn't work" is not a description we can work with. Check out the help center for more info - Jamiec
the wrong are -> Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt. - elias
@Jamiec sory my english isnt good - elias
@elias - That is ok, your English is plenty good enough. Update your question with more information rather than posting here in the comments. - Jamiec

1 Answers

0
votes

i solve it , the problem was the way of encryption , i installed ms access 2007 and create the same db that built by access 2013 and encrypt it , now i can open it with access 2013 with password connection , thanks