我遇到一个问题,无法与托管在不同子网上的SQL Server建立数据连接。
SQL Server IP:192.168.16.15我的IP:192.168.1.32
我可以在Visual Studio 2008的服务器资源管理器中将此服务器添加为服务器。
我可以很好地ping服务器,跟踪器返回
Tracing route to mhia02.OFFICE.local [192.168.16.15]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms mhiav202.office.local [192.168.1.9]
2 <1 ms <1 ms <1 ms mhia02.office.local [192.168.16.15]
Trace complete.
SQL Server确实允许远程连接。
在Visual Studio 2008中,当尝试测试连接时,会显示"超时已过期。超时时间在操作完成或服务器没有响应之前已过。"
SQL Server版本:2008服务器操作系统:Windows Web Server 2008 R2 64位我的操作系统:Windows Vista 64位
编辑
在网络配置设置中启用了共享内存、命名管道和TCP/IP。
编辑2
问题是没有在防火墙中打开端口1433。
尝试telnet到SQL正在运行的端口上的服务器(1433)。有时防火墙会允许ping,但会阻止SQL侦听的端口。