I'm trying to connect to a SQL CE database to run a report. Not trying to design it or anything.
When I connect to a normal database it works but when I connect to:
Data Source=c:\UserProfiles\admin\Datasets\DEMODATASET2011.sdf;Persist Security Info=True;
I get an error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
The CE database is working fine otherwise.
Does my connect string need to be different?
Thanks,
Darren
When I connect to a normal database it works but when I connect to:
Data Source=c:\UserProfiles\admin\Datasets\DEMODATASET2011.sdf;Persist Security Info=True;
I get an error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
The CE database is working fine otherwise.
Does my connect string need to be different?
Thanks,
Darren