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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
msprog
Advocate III
Advocate III

Data pipeline: Copy Data, Sql Server connection, how to parameterise the Table name

Hello,

we are testing a Fabric data pipeline with a sql server connection. we use a Copy data task. 

We want to copy a set of tables from the sql db to a target lakehouse. 

I notice that there is no way to parameterise the TableName for the Source configuration( Sql server) of Copy Data. 

Has anyone done this please? Please suggest.

 

thanks

 

1 ACCEPTED SOLUTION
wardy912
Solution Sage
Solution Sage

Hi @msprog 

 

 Use a 'For Each' task in the pipeline.

Add an array parameter in the following format:

["Table1","Table2","Table3"]

 

On the 'for each' settings add the following item

 

wardy912_2-1755768800031.png

 

@pipeline().parameters.DB

 Swap DB for your parameter name

 

I hope this helps, please give a thumbs up and mark as solved if it does, thanks!

 

View solution in original post

4 REPLIES 4
v-hashadapu
Community Support
Community Support

Hi @msprog , Hope you're doing fine. Can you confirm if the problem is solved or still persists? Sharing your details will help others in the community.

v-hashadapu
Community Support
Community Support

Hi @msprog , Hope you're doing okay! May we know if it worked for you, or are you still experiencing difficulties? Let us know — your feedback can really help others in the same situation.

v-hashadapu
Community Support
Community Support

Hi @msprog , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

wardy912
Solution Sage
Solution Sage

Hi @msprog 

 

 Use a 'For Each' task in the pipeline.

Add an array parameter in the following format:

["Table1","Table2","Table3"]

 

On the 'for each' settings add the following item

 

wardy912_2-1755768800031.png

 

@pipeline().parameters.DB

 Swap DB for your parameter name

 

I hope this helps, please give a thumbs up and mark as solved if it does, thanks!

 

Helpful resources

Announcements
September Fabric Update Carousel

Fabric Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.