Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27036

problem connecting to password protected .sdf database

$
0
0
I have an sql server compact 4.0 database. If I delete the password from the database, the following connection string works great. However I need it to be protected. Here is the current string:

"Provider=Microsoft.SQLSERVER.CE.OLEDB.4.0;Data Source='test.sdf'"

It will tell me that I am using an incorrect password if I add a password to the database and change the string to:

"Provider=Microsoft.SQLSERVER.CE.OLEDB.4.0;Data Source='test.sdf';Password=test"
or
"Provider=Microsoft.SQLSERVER.CE.OLEDB.4.0;Data Source='test.sdf';Password='test'"
or
"Provider=Microsoft.SQLSERVER.CE.OLEDB.4.0;Data Source='test.sdf';Password='<test>'"

I have seen all three ways on the internet. I am absolutely positive that I am using the correct password.

I am using visual studio express 2012 on windows 7.

Any ideas? Thanks.

Viewing all articles
Browse latest Browse all 27036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>