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.
"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.