简体   繁体   English

是否可以使用 Azure 数据工厂中的数据流修改(插入/更新)本地 SQL 服务器

[英]Is it possible to modify(insert/update) on-premises SQL server using dataflows in Azure Data Factory

I need to update the table which is in the on-premises sql server database using dataflow in azure data factory我需要使用 azure 数据工厂中的数据流更新本地 sql 服务器数据库中的表

  1. I have self hosted Integration Runtime我有自托管的集成运行时
  2. Linked services created based on this self hosted Runtime基于此自托管运行时创建的链接服务
  3. Dataset connection works fine数据集连接工作正常

However when I use the same dataset in dataflow it gives me this error -但是,当我在数据流中使用相同的数据集时,它会给我这个错误 -

The TCP/IP connection to the host has failed.与主机的 TCP/IP 连接失败。 Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port.确保 SQL 服务器的实例正在主机上运行并在端口接受 TCP/IP 连接。 Make sure that TCP connections to the port are not blocked by a firewall.确保 TCP 与端口的连接未被防火墙阻止。

If I need to modify the self hosted Integration runtime to auto-resolve Azure hosted for connecting an on-premises sql server - what are the perquisite for this for the on-premises sql server database perspective (as I tried to use autoresolve azure hosted runtime it gives me an error)? If I need to modify the self hosted Integration runtime to auto-resolve Azure hosted for connecting an on-premises sql server - what are the perquisite for this for the on-premises sql server database perspective (as I tried to use autoresolve azure hosted runtime它给了我一个错误)? Also please let me know if anything needs to be modified in Azure.另外请让我知道是否需要在 Azure 中修改任何内容。

  1. Open SQL Server Configuration Manager, and then expand SQL Server Network Configuration which you are trying to connect with Self-hosted IR.打开 SQL 服务器配置管理器,然后展开您尝试与自托管 IR 连接的 SQL 服务器网络配置。
  2. Click Protocols for InstanceName, and then make sure TCP/IP is enabled in the right panel and double-click TCP/IP.单击 InstanceName 的协议,然后确保在右侧面板中启用了 TCP/IP,然后双击 TCP/IP。
  3. On the Protocol tab, notice the value of the Listen All item.在 Protocol 选项卡上,注意 Listen All 项的值。
  4. Click the IP Addresses tab: If the value of Listen All is yes, the TCP/IP port number for this instance of SQL Server is the value of the TCP Dynamic Ports item under IPAll.点击 IP Addresses 选项卡:如果 Listen All 的值为 yes,则此 SQL Server 实例的 TCP/IP 端口号为 IP 项下的 TCP All Dynamic Ports 项的值。 If the value of Listen All is no, the TCP/IP port number for this instance of SQL Server is the value of the TCP Dynamic Ports item for a specific IP address.如果 Listen All 的值为 no,则此 SQL 服务器实例的 TCP/IP 端口号是特定 IP 地址的 TCP Dynamic Ports 项的值。
  5. Make sure the TCP Port is 443 .确保TCP Port is 443
  6. Click OK .单击OK

Note : Make sure to restart the server after above configurations.注意:确保在完成上述配置后重新启动服务器。

Refer: Firewall requirements for on-premises/private network请参阅: 本地/专用网络的防火墙要求

Thank you all for taking out time and answering my queries.感谢大家抽出时间回答我的问题。

I took below approach to resolve the issue with data flows and on premises self hosted limitation.我采用以下方法来解决数据流和本地自托管限制的问题。

  1. Created the staging tables in on cloud db.在云数据库中创建临时表。
  2. Using pipeline copy data activity (self-hosted IR) copied data from on premises to on cloud staging tables.使用管道复制数据活动(自托管 IR)将数据从本地复制到云临时表。
  3. Using the on cloud table in data flows for lookup and perform few transformation.使用数据流中的云表进行查找和执行少量转换。
  4. Modified the on cloud tables in data flows (Azure IR)修改了数据流中的 on cloud 表 (Azure IR)
  5. Added more one copy activity in pipeline to copy on cloud (modified data) to on premises.在管道中添加了多个复制活动,以将云(修改后的数据)复制到本地。

Thanks, hope this helps if anyone is facing similar issues.谢谢,如果有人遇到类似问题,希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从 Azure 数据工厂管道中的本地 SQL 数据库将数据插入 Azure SQL 数据库 - Unable to insert data into Azure SQL Database from On-premises SQL Database in Azure data factory pipeline 如何使用Azure数据工厂从云中的本地sql / azure sql数据库转换数据? - How to transform data from on-premises sql/azure sql database in the cloud using Azure Data Factory? 使用 Azure 数据工厂 + Azure 集成运行时连接到本地 SQL Server - Use Azure Data Factory + Azure Integration Runtime to connect to on-premises SQL Server 使用 Azure 数据工厂“Rest”数据集从本地服务器下载二进制内容(图像) - Downloading Binary content (images) from on-premises server using Azure Data Factory “Rest” Dataset 是否可以从本地 SQL Server 查询 Azure Active Directory? - Is it possible to query Azure Active Directory from an on-premises SQL Server? 来自本地PostgreSQL的Azure数据工厂 - Azure Data Factory from On-Premises PostgreSQL Azure数据工厂本地复制错误 - Azure Data Factory On-Premises Copy Error 将数据从本地SQL Server移到Azure SQL VM - Move Data from On-Premises SQL Server to Azure SQL VM Azure Functions 连接到本地 SQL Server - Azure Functions connect to on-premises SQL Server 在 Azure 数据工厂中使用本地数据网关 - Use on-premises data gateway in Azure Data Factory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM