Reputation: 1723
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:
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.Upvotes: 1
Views: 1172
Reputation: 6043
First you can define an array type variable in ADF. Eg. ['JAN-FEB','MAR-APR','MEI-JUN']
Traverse this array via Foreach activity. Select Sequential
, this will sequentially cycle the internal activities. Add dynamic content, select your declared variable name.
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.
Upvotes: 1