Azure SQL 链接服务器与 DB2 的 VPN

问题描述 投票:0回答:1

我有一个 Azure SQL 在线 SQL 数据库。如何使用 VPN (Fortigate) 创建到 DB2 服务器的链接服务器。 我检查了一些教程,但我的SSMS没有“链接服务器”文件夹,因为它是Azure-SQL。另外运行

EXEC sp_addlinkedserver
不起作用,因为它会导致
Could not find stored procedure 'sp_addlinkedserver'.

如何链接这两个数据库以进行简单的查询?对于 DB2 来说插入并不是真正必要的。

我目前正在使用 python/pandas DataFrame 连接和同步/上传数据从 DB2 到 Azure-SQL 的组合,这需要大量、容易出错的 python 代码和 Azure-SQL 上的大量存储。

sql azure azure-sql-database
1个回答
0
投票

您无法在 Azure SQL 数据库上创建链接服务器,因为该功能不受支持。 Azure SQL 托管实例确实支持链接服务器,但您只能使用 SQL 提供程序(驱动程序)连接到 Azure SQL 数据库、SQL Server、Azure Synapse、SQL 无服务器或 Azure SQL 托管实例。

仅在 SQL Server VM 上,您才能创建链接服务器来连接到 DB2 服务器。

© www.soinside.com 2019 - 2024. All rights reserved.