Azure Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server(Azure 错误:建立与 SQL Server 的连接时发生与网络相关或特定于实例的错误)
问题描述
我有 SQL 服务器 &托管在 Microsoft Azure 平台上的 Web 应用程序.当我从本地网络运行 Web 应用程序(并尝试连接 azure sql 服务器)时,我经常遇到错误,但是我从来没有遇到过 azure Web 应用程序服务的问题(即在 azure 上托管我的 Web 应用程序之后)
I have SQL server & web app hosted over Microsoft Azure platform. I am constantly getting above error when ever i run web application (and try to connect azure sql server) from my local network, however i never face issue on azure web app service (i.e. After hosting my web app on azure)
我知道这个错误很熟悉.但在这种情况下,这似乎很奇怪.我已经检查了以下内容,
I know that this error is very familiar. But in this case it seems weird. I have already checked below things,
- SQL 连接管理得当.(我正在使用 ADO.Net)
- 所有网关 IP 都针对 azure sql 列入白名单.
- 没有防火墙阻止我的私人网络.
任何帮助将不胜感激.
推荐答案
你需要将你的 IP 地址设置为白色,SQL azure 需要知道你的应用程序 IP
you need to white your IP address for same, SQL azure will need to know the your Application IP
这篇关于Azure 错误:建立与 SQL Server 的连接时发生与网络相关或特定于实例的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Azure 错误:建立与 SQL Server 的连接时发生与网络相关或特定于实例的错误
基础教程推荐
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01