(提供程序:命名管道提供程序,错误:40无法打开与SQL Server的连接) [英] (Provider: Named Pipes Provider, error: 40 could not open a connection to sql server)

查看:896
本文介绍了(提供程序:命名管道提供程序,错误:40无法打开与SQL Server的连接)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SqlException was unhandled by user code.

a network related or instance-specific error occurred while establishing a connection to server. The server was not found or was 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)

推荐答案

对SQL进行故障排除连接问题 [ ^ ]


在Sql Server配置管理器中,将网络配置"->"TCP/IP"设置为已启用"
In Sql Server Configuration Manager set Network Configuration->TCP/IP to Enabled


您的服务器可能已关闭.否则连接字符串可能不正确.虽然有很多情况.
Your server could be down. or the connection string may be incorrect. There are many scenarios though.


这篇关于(提供程序:命名管道提供程序,错误:40无法打开与SQL Server的连接)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆