Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
jlakshminaraya
Frequent Visitor

How to call stored procedures Concurrently and sequentially through Data pipeline

Hello -

I have 10 stored procedures in Fabric Warehouse. 

First 5 stored procedures to be run concurrently and remianing 5 to be run in sequentially by using Datapipeline. Please help us how to accomplish this in Microsoft Fabric?

 

 

Thanks in advance.

 

Thanks,

Lakshmi Narayana

1 ACCEPTED SOLUTION
NandanHegde
Super User
Super User

You can have 2 variables :

1 variable with the parallel SP names semi colon  seperated and another variable with the sequentail SP names semi colon  seperated.

You can then use 2 for each activities (1 with sequentail flow and 1 with parallel flow) with input as split(variable,';') which would create an array for both the variables and within for each use SP activity

 

NandanHegde_0-1707323725547.png

 

NandanHegde_1-1707323782038.png

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @jlakshminaraya 
Thanks for using Fabric Community.
You can achieve the above requirement by using a layout as shown below:

vnikhilanmsft_0-1707326144088.png


Hope this helps. Please let me know if you have any further queries.

@Anonymous 

Thanks for the update. Hope this work. 

Anonymous
Not applicable

Hi @jlakshminaraya 
The approach which I mentioned will definitely work. I have done a repro from my side.

vnikhilanmsft_0-1707327594843.png


If you observe the pipeline runs, all the stored procedures from 1 to 5 are run at the same time. (Concurrently) and the rest of them 6 to 10 are run sequentially.

Hope this helps. Please let me know incase of further queries.

Anonymous
Not applicable

Hi @jlakshminaraya 
Please do let me know after you try this. Incase of any queries please feel free to reach out to us.
Glad to help.

NandanHegde
Super User
Super User

You can have 2 variables :

1 variable with the parallel SP names semi colon  seperated and another variable with the sequentail SP names semi colon  seperated.

You can then use 2 for each activities (1 with sequentail flow and 1 with parallel flow) with input as split(variable,';') which would create an array for both the variables and within for each use SP activity

 

NandanHegde_0-1707323725547.png

 

NandanHegde_1-1707323782038.png

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

@NandanHegde : Thanks for the update. Since i am new to Fabric , could you please share the steps in pictorial approach with sample Variable and SP names and corresponding setting tabs.

 

 

Thanks,

Lakshmi Narayana

Hey @jlakshminaraya 


The details provided by @Anonymous  is correct but it is too manual and in case of new additions, you would have to manually add in new activities.

 

The below design is a meta data driven flow :

1) Create 2 variable like ParallelExecution and Sequentailexecution with semicolon seperated values

 

wherein values would your SPname1;spname2 etc

NandanHegde_0-1707365304276.png

 

2) use 2 foreach activities one for parallel execution and another one for sequential execution with values for thier settings :

NandanHegde_1-1707365446473.png

 

value : 

@split(variables('ParallelExecutionSPs'),';')
 
 
Similarly for sequentail :
NandanHegde_2-1707365498545.png

 

@split(variables('SequentailExecutionSPs'),';')
 
3) within for each , use stored procedure activity
NandanHegde_3-1707365557636.png

similar would be for sequentail foreach as well

 

 

hope this helps.

 

You can even have the variable as type array and directly use in foreach as is if need be




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com
Anonymous
Not applicable

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.