我正在远程访问 SQL Server Express 2008。
- 我已打开服务“SQL Server Browser”
- 我已打开服务“SQL Server (SQLExpress)”
- 我已启用 TCP/IP 并在属性中将动态端口设置为空白并将 tcp 端口设置为 1433
- 我可以连接本地(使用 ip),所以我的凭据是正确的。
- 我的 Windows 防火墙中有一条异常记录,将端口 1433 设置为打开。
- 我已执行系统重新启动,使所有服务仍处于打开状态。
在我尝试通过远程计算机连接后,我收到此错误。
Cannot connect to XXX.XXX.XXX.XX
===================================
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) (.Net SqlClient Data Provider)
------------------------------
Error Number: 3
Severity: 20
State: 0
您的想法和解决方案将不胜感激。
凯杰
编辑 嗨,感谢您的快速回复。目前没有连接字符串。我正在尝试使用连接:SQL Server Management Studio 2008
编辑 2 嘿尼克。我正在使用 SERVERNAME\SQLEXPRESS 连接我关闭了 Windows 防火墙,但仍然没有任何乐趣。
我尝试按照您的建议添加端口:
===================================
Cannot connect to XXX.XXX.XXX.XX, 1433.
===================================
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: TCP `Provider, error: 0 - No connection could be made because the target machine actively refused it.) (.Net SqlClient Data Provider)`