[英]Azure data factory- Azure function to connect sql database does not work
I have a copy activity in ADF.我在 ADF 中有一个复印活动。 On completion I wanted to update a table.
完成后我想更新一个表。 Stored proc is not an option for us.
存储过程不是我们的选择。 Would like to know all other options to run the update query post copy.
想知道运行更新查询后复制的所有其他选项。 Tried Azure function to connect to sql database and update the table.
尝试 Azure function 连接到 sql 数据库并更新表。 Works fine separately with time trigger.
与时间触发器分开工作正常。 What trigger to be used for the Azure function for this scenario in ADF?
对于 ADF 中的这种情况,Azure function 使用什么触发器?
Thanks in advance, Aruna提前致谢, 阿鲁娜
Per my understanding, you want to execute a function to update a table after a copy activity and you don't want to use time trigger.据我了解,您想在复制活动后执行 function 来更新表,并且您不想使用时间触发器。 Currently Azure function supported as a step in Azure Data Factory pipelines.
目前支持 Azure function 作为 Azure 数据工厂管道中的一个步骤。 So we just need to drag the azure function to pipeline in Azure Data Factory and provide the info of your function(such as the name, url...).
So we just need to drag the azure function to pipeline in Azure Data Factory and provide the info of your function(such as the name, url...).
For further information, you can refer to this tutorial: https://azure.microsoft.com/en-us/blog/azure-functions-now-supported-as-a-step-in-azure-data-factory-pipelines/有关更多信息,您可以参考本教程: https://azure.microsoft.com/en-us/blog/azure-functions-now-supported-as-a-step-in-azure-data-factory-pipelines /
As a work-a-round: within lookup you can define a sql query and execute quiete a lot of logic.作为一个循环工作:在查找中,您可以定义一个 sql 查询并执行很多逻辑。 There is a limit of ~2MB of data returned on the lookup (not listed as a limitation of ADF).
查找时返回的数据有约 2MB 的限制(未列为 ADF 的限制)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.