Tagged: SQL

Interesting Web Dev Things 9 Dec 13

Advertisements

A network-related or instance-specific error occurred while establishing a connection to SQL Server.

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 was checking everything from firewall settings to SQL Network Configuration to solve the issue. Turns out I didn’t bother checking that the  server-name

Rather than just localhost or (local), I needed  to append the SQL instance name to it – so localhost\SQLExpress or (local)\SQLExpress….. many hours wasted 😉