saikoneru1997 / Azure_DataFactory

0 stars 0 forks source link

Copy Multiple tables #41

Closed saikoneru1997 closed 1 week ago

saikoneru1997 commented 1 week ago

To get schema and tables name we can use below query

select TABLE_SCHEMA, TABLE_NAME from INFORMATION_SCHEMA.TABLES where table_type='BASE TABLE' and TABLE_SCHEMA='dbo'

Image

we will get output like

Image

to loop each table we need to use for each activity

Image

within the copy activity create parameters and pass values as below

Image

in sink we can use

@concat(item().TABLE_SCHEMA,item().TABLE_NAME,'.csv')