Azure 错误:建立与 SQL Server 的连接时发生与网络相关或特定于实例的错误 [英] Azure Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server

查看:24
本文介绍了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,

  1. SQL 连接管理得当.(我正在使用 ADO.Net)
  2. 所有网关 IP 都针对 azure sql 列入白名单.
  3. 没有防火墙阻止我的私人网络.

任何帮助将不胜感激.

推荐答案

你需要将你的 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 的连接时发生与网络相关或特定于实例的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆