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
sudhav
Helper V
Helper V

Need Dynamic SQL stored procedure

Hi Team 

 

I have config table below

sudhav_0-1696526829046.png

fact)Transaction is fact table and remaining are dim tables , i want to joijn all of the with fact table and need to get a single table and mapping columns also i mentioned in config table,Now i am taking this config table into lookup activity and reading all the values.

sudhav_1-1696526992870.png

in foreach i have taken copy data activity and used dynamic sql stored proc like below

sudhav_2-1696527121622.png

imported parameters also in stored proc.

Now my question is, if i run it, 5 different tables are forming in destination instead of 1 single table, I want 1 single table as result,is there any dynamic stored proc to addition that using for loop or any help in this.

TIA

3 REPLIES 3
Anonymous
Not applicable

Hi @sudhav ,
Thanks for using Fabric Community.
Can you please provide me with more information regarding what are you trying to acheive here? What is the stored procedure query used in the source actually doing? What is the destination given for the copy data activity? It would be more helpful if you can provide the screenshots.

Thank you

Anonymous
Not applicable

Hi @sudhav ,

We haven’t heard from you on the last response and was just checking back to see if you can provide the details asked in the above comment. Please let us know if you have any further queries.

Anonymous
Not applicable

Hi @sudhav ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. Please let us know if you have any other queries.

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.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 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.

Top Solution Authors