How do I fix the error 'Named Pipes Provider, error 40 - Could not open a connection to' SQL Server'?

前端 未结 30 2580
借酒劲吻你
借酒劲吻你 2020-11-22 08:27

I can\'t seem to connect to my database from a site. I get this error:

Named Pipes Provider, error: 40 - Could not open a connection to SQL Server

30条回答
  •  盖世英雄少女心
    2020-11-22 09:19

    A thread on MSDN Social, Re: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server, has a pretty decent list of possible issues that are related to your error. You may want to see if any of them could be what you're experiencing.

    • Incorrect connection string, such as using SqlExpress
    • Named Pipes(NP) was not enabled on the SQL instance
    • Remote connection was not enabled
    • Server not started, or point to not a real server in your connection string
    • Other reasons such as incorrect security context
    • try basic connectivity tests between the two machines you are working on

提交回复
热议问题