首页 > 解决方案 > 从 SQL 管理工作室连接到 Azure DB 失败 MSSQLSERVER_10060

问题描述

我正在尝试使用 SQL 管理工作室连接到已在 Azure 上创建的 sql 服务器,但出现以下错误。

在此处输入图像描述

Error message: An error has occurred while establishing a connection to the server. When connecting to SQL Server, 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.) (Microsoft SQL Server, Error: 10060)

我在 SQL 服务器防火墙设置中启用了客户端 IP。

请让我知道是否还有其他需要注意的地方。谢谢

标签: sql-serverazure

解决方案


要解决此错误,请尝试以下操作之一:

  • 确保您已将计算机上的防火墙配置为允许此 SQL Server 实例接受连接。也就是说,如果您尝试从公司网络内连接,则网络防火墙可能不允许通过端口 1433 的出站流量。如果是这样,除非您的 IT 部门打开端口 1433,否则您无法连接到 Azure SQL 数据库服务器。在 Azure 端,您还需要检查 NSG(与 Azure SQL 服务器所在的子网关联)是否允许客户端 IP特定端口 1433。
  • 如果启用服务器级防火墙,请在 SQL 服务器防火墙设置中添加客户端 IP。
  • 使用端口 Telnet Azure SQL 数据库服务器的当前 IP 以验证网络连接。

推荐阅读