我需要通过带有端口的IP地址连接到远程SQL Server。允许SQL Server远程连接
但是,当我ping通的IP地址,那么答复也是如此。但是当我尝试建立失败的连接时。
我尝试使用Management Studio和命令提示符。
我的命令是:
sqlcmd -S [IP],[port] -U [user] -P [password]
错误报告如下:
HResult 0x274C, Level 16, State 1
TCP Provider: 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.Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : Login timeout expired.
我想知道
有没有从我的客户端的任何缺少的步骤为此我无法建立连接?
或者这是服务器配置(允许远程连接)
SQL Server的**版本**(2000,2005,2008 ??)和** edition **(Standard,Express,Enterprise)您正在使用? –
我真的很抱歉。其实我是.net新手。我不知道在服务器端使用的是什么版本和版本。但在客户端,我正在尝试连接sqlserver 2008和express版本。 – PAryan
你需要找出那些信息。例如,SQL Server ** Express **默认情况下不接受远程连接。它可以配置为这样做 - 但它需要在服务器端进行配置 –