I am working on a VS 2010 C# project that is supposed to connect to a Sql Server 2008 CE 3.5 database. I added the database to the project, and am trying to establish a new SqlConnection.
The directory path of the database is:
W:\MCT\Development\LocalReportExample\LocalReports\TestCEDatabase.sdf
I am trying to set my ConnectionString as follows:
test = @"Data Source=W:\MCT\Development\LocalReportExample\LocalReports\TestCEDatabase.sdf";
connection.ConnectionString = test;
connection.Open();
When the code executes, it throws an error message stating that the database was not found, or is inaccesible. Is my ConnectionString wrong? Is there possibly something I haven't configured correctly in the database setup?
View Complete Post