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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
arkiboys2
Helper IV
Helper IV

compare source to destination

hello,

in dataflowgen2 there are two step

one to show the source (sql server table) nd the other to show the table in the warehouse

how can I compare the columns of these two tables and also to compare their column table types?

it seems in ADF dataflow, I can join these two tables and filter on source2@Type != source1@Type

thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @arkiboys2 ,

The Copy activity has an Upsert mode which I think would help here. Simple instructions:

1. Create one Copy activity.

2. Set your source database in the Source tab of the Copy activity.

3. Set your target (or sink) database in the Sink tab. Set the mode to Upsert.

4. Specify the interim schema. This is used to create a transient table which holds data during the Upsert.

5. Specify the unique keys for the source and target table in the Key columns section so the Upsert can take place successfully.

vyilongmsft_0-1721189883337.png

Failing that, simply use a Copy activity to land the data into a table in your target database and use a Stored Proc activity to implement your more complicated logic.

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @arkiboys2 ,

The Copy activity has an Upsert mode which I think would help here. Simple instructions:

1. Create one Copy activity.

2. Set your source database in the Source tab of the Copy activity.

3. Set your target (or sink) database in the Sink tab. Set the mode to Upsert.

4. Specify the interim schema. This is used to create a transient table which holds data during the Upsert.

5. Specify the unique keys for the source and target table in the Key columns section so the Upsert can take place successfully.

vyilongmsft_0-1721189883337.png

Failing that, simply use a Copy activity to land the data into a table in your target database and use a Stored Proc activity to implement your more complicated logic.

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.