I have a virtual dedicated 2003 server (standard edition) on which I installed SQL Server Express 2005 in mixed mode. After installing the server I added the 2010 Web Developer package. I updated the remote connections to allow TCP/IP and named
pipes. I also ensured that the TCP/IP protocol was enabled under the protocols tab. After restarting the SQLEXPRESS service and attempting to configure a SqlDataConnection in Web Developer I got the ubiquitous error,
"A network-related or instance-specific error occured while establishing a connection to SQL Server. The server was not found or was not accessible. Verify the instance name is correct and that the SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)".
When I try using a trusted connection with sqlcmd I got this error,
"HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server .
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote
Sqlcmd: Error: Microsoft SQL Native Client : Log
View Complete Post