简体   繁体   中英

How to sequence stored procedure process on Azure Data Factory?

I have a stored procedure that has a DateTime parameter, and I want to execute the pipeline sequence, so it will start first on 'JAN-FEB' and then 'MAR-APR' then 'MEI-JUN'

How can I do that? without using hard pipeline from the stored procedure?

So for the example like this:

在此处输入图像描述

I have 3 stored procedures with different DateTime . And I don't want it run like this.

在此处输入图像描述

What can I do to solve my problem? What function from Azure Data Factory can I use for this case?

Note:

  • Why I want to sequence this stored procedure is to prevent crash from Azure Synapse . Because in this script will process around 1 billion rows from the source table, and I need to batch this process to prevent from any error.
  1. First you can define an array type variable in ADF. Eg. ['JAN-FEB','MAR-APR','MEI-JUN']
    在此处输入图像描述

  2. Traverse this array via Foreach activity. Select Sequential , this will sequentially cycle the internal activities. Add dynamic content, select your declared variable name.
    在此处输入图像描述

  3. Inside Foreach activity, we can use a stored procedure, click Import will import params in your stored procedure. Then add dynamic content @item() . 在此处输入图像描述

ADF will execute the stored procedure sequentially.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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