SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)
2010-03-15 10:04
567 查看
/* 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
远程登录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
相关文章推荐
- SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)
- SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)
- 如何解决sql连接错误HResult 0x2, Level 16, State 1 Could not open a connection to SQL Server [2].
- 如何解决sql连接错误HResult 0x2, Level 16, State 1 Could not open a connection to SQL Server [2].
- Fixed -- Could not open a connection to SQL Server
- Named Pipes Provider: Could not open a connection to SQL Server [53]
- 错误提示: (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
- Could not open a connection to SQL Server [2]
- provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
- Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
- 解决git客户端MINGW32下的“Could not open a connection to your authentication agent.”
- 解决cygwin下的“Could not open a connection to your authentication agent.”
- 如何解决sql server2005的“不允许远程连接”错误.(how to resolve the error: "SQL Server does not allow remote connections" for SQL Server2005)
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法
- git:could not open a connection to your authentication agent问题的解决(重新绑定私钥)
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法
- 解决Azure “Failed to start Storage Emulator: the SQL Server instance `.\' could not be found.”
- cloudera-scm-server启动时出现Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection问题解决方法(图文详解)
- yii框架:CDbConnection failed to open the DB connection: could not find driver的解决的方法
- 远程登录mysql,报错:message from server: "Host is not allowed to connect to this MySQL server"解决办法