简体   繁体   English

如何在 Azure 数据工厂管道上按顺序批量存储过程?

[英]How to batch Stored Procedure with sequential on Azure Data Factory Pipeline?

I have Stored Procedure pipeline on Azure Data Factory, my Stored Procedure need to run with parameter using DateTime , but I have a problem here, I need to Batch my Stored Procedure with differen parameter.我在 Azure 数据工厂上有存储过程管道,我的存储过程需要使用DateTime参数运行,但是我在这里遇到问题,我需要使用不同的参数对我的存储过程进行批处理。

For Example例如

Stored Procedure 1, DateTime value 2020-05-01存储过程1, DateTime时间值2020-05-01

Stored Procedure 2, DateTime value 2020-06-01存储过程2, DateTime时间值2020-06-01

Stored Procedure 3, DateTime value 2020-07-01存储过程 3, DateTime时间值2020-07-01

... ...

Can I using ForEach method on this?我可以对此使用ForEach方法吗? So, this ForEach will stored every step of Stored Procedure, and run it sequence on the pipeline所以,这个ForEach将存储存储过程的每一步,并在管道上按顺序运行

Based on your ask, you need to create a parameter or variable of type array with all the values in sequence.根据您的要求,您需要创建一个数组类型的参数或变量,其中所有值都按顺序排列。 Use that as an input for the foreach activity and enable sequential execution of for each activity and within for each activity have a stored procedure activity with the input parameter as the for each activity execution loop value将其用作 foreach 活动的输入,并为每个活动启用顺序执行,并且在每个活动内有一个存储过程活动,输入参数作为每个活动执行循环值

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM