无法连接到通过SSMS蔚蓝的SQL [英] Can't connect to azure sql via ssms
问题描述
我想通过SQL Server 2008 R2的SP2连接Azure中的SQL数据库。我使用的Azure与免费试用。我已经到处寻找,并试图这些事情:
I'm trying to connect Azure's SQL database via SQL Server 2008 R2 SP2. I'm using Azure with free trial subscription. I already search everywhere and tried these things:
- 允许在Windows界外球和outbounds规则防火墙端口1433
- 检查SQL Server配置管理器的TCP连接可用并在端口1433上运行
- 创建在Azure门户服务器和数据库,并配置IP津贴
我使用这些设置连接
- 服务器类型:数据库引擎
- 服务器名称:TCP:aaa.database.windows.net,1433 / aaa.database.windows.net
- 登录:BBB AAA @
- 密码:XXX
和误差
发生网络相关的或特定于实例的错误,
建立SQL Server的连接。
"A network-related or instance-specific error occurred while establishing a connection to SQL Server.
服务器未找到或无法访问。验证
实例名称是否正确,以及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提供程序,error:0 - 连接尝试失败
因为连接的方没有正确一段时间后应对
时间,或已建立的连接失败,因为连接主机
没有反应)(的Microsoft SQL Server,错误:10060)
(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) (Microsoft SQL Server, Error: 10060)"
P.S。我也无法ping xxx.database.windows.net
并不能telnet xxx.database.windows.net 1433
P.S. I also can't ping xxx.database.windows.net
and can't telnet xxx.database.windows.net 1433
推荐答案
您的问题是混乱的,因为你在谈论SQL Server和SQL数据库。但是,考虑到你所提到的连接字符串( xxx.database.windows.net
),你肯定是在谈论SQL数据库服务,在虚拟机不是SQL Server。
Your question is confusing, as you're talking about both SQL Server and SQL Database. But, given the connection strings you mentioned (xxx.database.windows.net
) you are definitely talking about SQL Database service, not SQL Server in a VM.
这是说:你必须允许某些IP地址连接到它(这是服务本身的一个内置的一部分)。看看SQL数据库服务器的防火墙
设置:
That said: You must allow certain IP addresses to connect to it (this is a built-in part of the service itself). Look at the SQL Database server's Firewall
setting:
您需要添加您的电脑(或IP范围)的IP地址,通过当地的工具来访问SQL数据库。
You'll need to add the IP address of your computer (or IP range), to access SQL Database through your local tools.
这篇关于无法连接到通过SSMS蔚蓝的SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!