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

Ask the Fabric Databases & App Development teams anything! Live on Reddit on August 26th. Learn more.

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 REPLY 1
wardy912
Impactful Individual
Impactful Individual

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
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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