參閱:http://www.cnblogs.com/lihuimingcn/archive/2009/07/29/1534029.html
远程登录SQL2005出错
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 the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
通过telnet IP 1433 发现服务器并没有监听
在服务器上netstat -an查看果然如此
检查server property中security中是否启用sql和windows混和登录和connection中是否allow remote connection
检查configuration manager中是否启用了tcp ip和named pipe
也可以在surface area 检查configuration中检查database engine的remote connection设置
检查操作系统防火墙设置,打开1433端口
但是问题还是依旧,最后发现在configuration manager中tcp/ip的property中IP Address:IP1设置的IP和port均没错,而IPALL中居然设置了Dynamic Port
马上设置1433后,问题解决,难道安装完时就是这个作为默认值吗?
本文解决了一个常见的SQL Server 2005远程连接失败的问题,详细介绍了排查步骤,包括检查TCP/IP配置、防火墙设置及端口监听情况。
2366

被折叠的 条评论
为什么被折叠?



