2010-12-21 35 views
0

错误,同时连接到使用SQL管理Studio 2005的外部SQL Server IP地址错误而连接到外部SQL Server使用SQL Management Studio中的IP 2005

TITLE: Connect to Server

Cannot connect to 1.2.3.4\SQLEXPRESS.

ADDITIONAL INFORMATION:

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476

回答

0

确保远程服务器允许连接到端口1433/tcp,例如:使用telnet客户

(在Windows 7中默认是不安装,安装使用Turn Windows features):

telnet 1.2.3.4 1433 

或使用nmap(端口扫描)

nmap -sT -r -n -vv -p1433 1.2.3.4 

如果不允许 - 检查入站防火墙规则。

1

默认情况下,SQL Server 2005不允许远程连接,因此您必须手动启用它。所以如果@abatishchev的解决方案不能让你走,它可能是你没有设置连接的权限。

运行表面区域配置管理器(它应该位于“我的程序”下的“配置工具”下的SQL Server文件夹中)。 为服务和连接选择表面区域配置 选择您的服务器扩展数据库引擎,然后选择远程连接并启用TCP/IP和/或tcp/ip和命名管道。点击应用。

虽然你在这里检查SQL Server浏览器设置为运行。将其展开并选择服务;将启动类型更改为自动。

再次尝试在管理工作室快速连接到机器。

相关问题