日期:2014-05-18  浏览次数:21361 次

数据库不能远程链接怎么解决A network-related
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)

因为前台也掉用了数据。是能够连接的。前台代码和数据库在一台服务器上
但后台在另一台服务器上,所以我的判断是远程链接有问题。



SQL服务器设置。 安装的是 【具有更多功能的Express】
Sql Server Management Studio-右击服务器名-属性-连接,选中“允许远程连接到此服务器”。
已经设置了允许

“SQL Server 配置管理器”-TCP/IP连接 都启用了。

防火墙也设置了1433和sql的例外(关闭防火墙同样连不上,应该不是防火墙问题)


[外围应用配置器]-->将RemoteDacEnable置为True. 也设置了

PALL->TCP端口也设置了1433
TCP/IP的默认端口也是1433
这都是谷歌和百度搜的解决办法,都没用。

------解决方案--------------------
以前遇到过一次相同问题,无论怎么都早不到问题,原因是同时运行了两个sql服务,sql2000和sql2005
似乎远程会优先连接2005,就连不上了
希望可以做个参考,如有雷同,纯属巧合
解决办法是在服务管理中关闭掉多余的sql服务
------解决方案--------------------
打补丁了吗!
2000 和 2005 远程链接 都需要打sp1补丁才能链接