2011-09-27 27 views
0

我正在尝试连接到sql server 2005数据库。它不在同一个LAN中。我收到错误,如如何连接不在同一局域网中的sql数据库

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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) 

在本地局域网内,我能够使用的IP & TCP \ IP端口号“和“实例名称”

连接是有这个

+0

你能提供你在这里给出的连接字符串的配置文件条目吗? –

+0

@deepi - 从您的评论中删除密码 – Dave

+0

我为该用户名和密码使用'SQL身份验证' – deepi

回答

0

可能它不是“不在您的LAN”,而是“您的网络无法访问”。有很大的差异,没有任何额外的信息,就像你会得到答案一样好。

确保您可以先建立基本的网络连接(例如,PING或telnet到端口以查看它打开)。它可能是一个防火墙,告诉你迷路了。

0

与您的网络管理员交谈 - 您似乎没有从您在网络中的位置到达该子网的路由,或者流量正在被防火墙阻止,或者您的连接中有不正确的端口或IP串。

+0

我检查了远程系统中的IP和端口是否正确 – deepi

0

可能有很多原因。

远程SQL Server是一个防火墙/流量不正确路由/远程访问不是SQL服务器/服务器端软件防火墙上启用后面等

你或许应该查找一些教程如何设置在Windows Server + MS SQL远程连接。

相关问题