<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: compare source to destination in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/compare-source-to-destination/m-p/4045291#M4600</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="592286" data-lia-user-login="arkiboys2" class="lia-mention lia-mention-user"&gt;arkiboys2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;Copy activity&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;has an Upsert mode which I think would help here. Simple instructions:&lt;/P&gt;
&lt;P&gt;1. Create one Copy activity.&lt;/P&gt;
&lt;P&gt;2. Set your source database in the Source tab of the Copy activity.&lt;/P&gt;
&lt;P&gt;3. Set your target (or sink) database in the Sink tab. Set the mode to Upsert.&lt;/P&gt;
&lt;P&gt;4. Specify the interim schema. This is used to create a transient table which holds data during the Upsert.&lt;/P&gt;
&lt;P&gt;5. Specify the unique keys for the source and target table in the Key columns section so the Upsert can take place successfully.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Failing that, simply use a Copy activity to land the data into a table in your target database and use a&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-stored-procedure" rel="nofollow noreferrer" target="_blank"&gt;Stored Proc activity&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to implement your more complicated logic.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 04:20:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-17T04:20:27Z</dc:date>
    <item>
      <title>compare source to destination</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/compare-source-to-destination/m-p/4044201#M4593</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;in dataflowgen2 there are two step&lt;/P&gt;&lt;P&gt;one to show the source (sql server table) nd the other to show the table in the warehouse&lt;/P&gt;&lt;P&gt;how can I compare the columns of these two tables and also to compare their column table types?&lt;/P&gt;&lt;P&gt;it seems in ADF dataflow, I can join these two tables and filter on&amp;nbsp;&lt;SPAN&gt;source2@Type != source1@Type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 11:23:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/compare-source-to-destination/m-p/4044201#M4593</guid>
      <dc:creator>arkiboys2</dc:creator>
      <dc:date>2024-07-16T11:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: compare source to destination</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/compare-source-to-destination/m-p/4045291#M4600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="592286" data-lia-user-login="arkiboys2" class="lia-mention lia-mention-user"&gt;arkiboys2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;Copy activity&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;has an Upsert mode which I think would help here. Simple instructions:&lt;/P&gt;
&lt;P&gt;1. Create one Copy activity.&lt;/P&gt;
&lt;P&gt;2. Set your source database in the Source tab of the Copy activity.&lt;/P&gt;
&lt;P&gt;3. Set your target (or sink) database in the Sink tab. Set the mode to Upsert.&lt;/P&gt;
&lt;P&gt;4. Specify the interim schema. This is used to create a transient table which holds data during the Upsert.&lt;/P&gt;
&lt;P&gt;5. Specify the unique keys for the source and target table in the Key columns section so the Upsert can take place successfully.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Failing that, simply use a Copy activity to land the data into a table in your target database and use a&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-stored-procedure" rel="nofollow noreferrer" target="_blank"&gt;Stored Proc activity&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to implement your more complicated logic.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 04:20:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/compare-source-to-destination/m-p/4045291#M4600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-17T04:20:27Z</dc:date>
    </item>
  </channel>
</rss>

