首页 > 解决方案 > MS Access App 从任何地方连接到 Azure Sql Db

问题描述

我创建了一个 MS Access 应用程序,它使用 Azure SQL Server 作为支持的 Db。Access 应用程序被设计为尽可能像 Web 应用程序一样运行,因为当用户处理特定记录时,没有任何内容存储在本地,也无法保存在 cookie 中。我已经在 Azure Db 防火墙中设置了主要办公室 IP,它在办公室时效果很好。

然而,希望允许用户在任何地方使用该工具,即他们的家、酒店、咖啡店等。我已经确定这不能直接在本地 Access 应用程序和 Azure SQL Db 之间完成(在基于我不能根据具体情况继续添加新的原始 IP)。

是否可以创建一个 Azure 应用服务或应用认证,MS Access 可以使用它来对 Azure 关闭订阅进行身份验证,然后通过它访问 Azure Db?

标签: azurems-accessazure-sql-database

解决方案


问题在于您拥有动态 IP 地址,而这不一定仅限于家庭互联网连接 - 一些商业宽带提供商也使用动态 IP 地址。

如果我理解正确,您需要从具有动态 IP 地址的连接访问您的 SQL Azure 实例以进行调试或使用 SQL Management Studio,您需要为您的 ISP 使用的整个 IP 地址范围创建防火墙规则。如您所见,这会立即削弱使用 SQL Azure 带来的安全性。

如果您确实想为您的 ISP 添加整个 IP 地址范围,您需要:

1. Go to http://whatsmyip.org to get your current IP address assigned by your ISP.
2. Lookup the IP address range assigned to your ISP by using https://apps.db.ripe.net/search/query.html and entering the IP address from step 1.
3. Create a firewall rule using the start IP address and the end IP address from step 2.

我确实希望 Azure 团队将来会实施其他防火墙选项,例如基于 DNS 或 MAC 地址的访问规则。

这有帮助吗?

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-firewall-configure

或这个?

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-networkaccess-overview

最后..

https://support.office.com/en-us/article/link-to-or-import-data-from-an-azure-sql-server-database-88c0cc2c-21dd-46f5-b74a-0db3613f5166


推荐阅读