James T
2011-01-23 09:01:45 UTC
However, I'm getting 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I thought it would be a connection string problem but I've tried many different combinations and cannot get anything to work.
my database is located in the usual project folder "C:\Users\Me\Documents\Visual Studio 2010\Projects\SRE5FM2011\SRE5FM2011\FootballDatabase.sdf" and I want to connect locally through my program.