gpt4 book ai didi

sql-server - 通过代理服务器连接到 Azure 上的 SQL Server 数据库

转载 作者:行者123 更新时间:2023-12-01 23:49:06 24 4
gpt4 key购买 nike

我正在尝试通过企业代理服务器通过 Visual Studio Community(v12 更新 4)访问我的 Microsoft Azure 服务。我可以使用手动输入到 .config 文件 ( http://en.code-bude.net/2013/07/15/how-to-setup-a-proxy-server-in-visual-studio-2012/ ) 的代理设置来访问我的移动服务和 API 脚本

但是,我无法通过 Visual Studio 或附带的 SQL Server 对象资源管理器进入我的 SQL Server 数据库。我收到以下错误:

Cannot connect to mydb.database.windows.net.

A network-related or instance-specific error occurred while establishing a connection to
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: Named Pipes
Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)

FWIW 我也无法在工作中通过代理通过 SQL Server Management Studio 连接到 SQL 数据库,尽管我可以在家中完成。通过 Azure 管理门户进行的 Web 数据库访问已经停止工作几个月了 - 登录时给我一个空白页面,所以我几乎无法访问数据库。

我无权访问我的公司代理服务器。它由官僚管理,他们对自己的部门负责。

还有其他人通过代理成功连接到 SQL Server 数据库吗?

最佳答案

Visual Studio 尝试使用端口 1433 直接连接到 SQL 服务器。

您的代理很可能只允许 80 和 443 端口。

如果您可以要求代理管理员打开这些端口,请这样做,否则以下是绕过代理的一些方法。

  1. 使用 SSL VPN(例如 OpenVPN)。有免费的 VPN 服务提供商,例如 VPNBook 等(搜索以了解更多信息)。

  2. 使用手机的热点或其他不使用代理连接的互联网连接。

关于sql-server - 通过代理服务器连接到 Azure 上的 SQL Server 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27507620/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com