provider: Named Pipes Provider, error: 40 – could not open a connection to SQL server.
问题 I developed a .net application that depends on a sql server database, the database was on the local machine used for development of the application. When I moved the database to a remote machine and changed the connection string I got the following error: 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 default settings SQL server does not allow remote connection. ( provider: Named Pipes