SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)

/* from: http://www.diybl.com/course/7_databases/sql/sqlServer/2007106/77007.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后,问题解决

 

具体设置:configuration manager --> SQL Server 2005 Network Configuration --> Protocols for MSSQLSERVER --> 右侧属性中"TCP/IP" --> 编辑属性,enable,IPAddress标签中的IPAll属性,设置TCP Port 为1433

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值