sql-server - 从 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 Server 实例接受连接。也就是说,如果您尝试从公司网络内连接,则网络防火墙可能不允许通过端口 1433 的出站流量。如果是这样,除非您的 IT 部门打开端口 1433,否则您无法连接到 Azure SQL 数据库服务器。在 Azure 端,您还需要检查 NSG(与 Azure SQL 服务器所在的子网关联)是否允许客户端 IP特定端口 1433。
- 如果启用服务器级防火墙,请在 SQL 服务器防火墙设置中添加客户端 IP。
- 使用端口 Telnet Azure SQL 数据库服务器的当前 IP 以验证网络连接。
推荐阅读
- vmware - VMware WorkStation 来宾虚拟机可以看到其他虚拟机的单播流量
- javascript - 如何捕获自动播放 DOMException?
- python - 如何使用python比较同一JSON文件中的多个键值
- python - 在 Python 中删除 CSV 单元格的一部分
- python - Python:在中找不到“__main__”模块
- mysql - 节点mysql在插入(约束)错误后跳过一些ID
- tensorflow - 不使用 FlexDelegate 的 C++ 推理中的 TFlite Select Ops
- cmd - 无法打开虚拟机的会话 (0x80004005)。我在 CMD 中写错了一个代码,现在我在 VirtualBox 中收到此错误消息
- java - 在 docker 中使用 Selenium-hub 下载文件,其中内容类型标头在加载时更改(Java)
- gwt - 如何将 ValueChangeHandler 添加到自定义 DateBox?