<?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>article Replication of MS SQL tables that include computed columns in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Replication-of-MS-SQL-tables-that-include-computed-columns/ta-p/1850667</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;When running a Replicate task with &lt;STRONG&gt;MS SQL source endpoint&lt;/STRONG&gt;, replication of computed columns is supported for Full Load only. This limitation is also mentioned in the Replicate User Guide:&lt;/P&gt;
&lt;P&gt;“"Replication&amp;nbsp;of computed columns is supported in Full Load&amp;nbsp;replication&amp;nbsp;tasks only.&lt;STRONG&gt;&amp;nbsp;During change processing, INSERTs to computed columns will appear as NULL on the target and UPDATEs will be ignored&lt;/STRONG&gt;."&lt;/P&gt;
&lt;P&gt;If you have a table with computed column and you would still like that the value of the computed column will be replicated to the target you can do one of the following:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Option 1 :&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;In the Replicate UI under task design --&amp;gt; Table settings (of the table with the computed column) --&amp;gt; transform&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Remove the computed column from the output columns list&lt;/LI&gt;
&lt;LI&gt;Add a new column (with the name that you wish to be created in the target) and define the desired computation expression (should be similar to the computation expression defined for the computed column in the source endpoint)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;EM&gt;Note &lt;/EM&gt;: with this setting Replicate will do the required computation (instead of the db).&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Option 2:&lt;/U&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In the target endpoint create the table DDL with the computed column expression manually&lt;/LI&gt;
&lt;LI&gt;In the Replicate UI under task setting --&amp;gt; Full Load --&amp;gt; Full Load Settings --&amp;gt; If target table already exists: &amp;nbsp;set the option to ‘TRUNCATE before loading’&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;EM&gt;Note&lt;/EM&gt;: &amp;nbsp;this setting affects all task tables. i.e. if you choose this option you would have to create by yourself, &amp;nbsp;in the target endpoint, &amp;nbsp;the DDL of all tables included in the task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you wish, you can set Replicate to suspend tables with computed columns that are included in CDC tasks. This can be done by setting the internal parameter &lt;STRONG&gt;suspendTableWithComputedColumn&lt;/STRONG&gt; to &lt;STRONG&gt;True&lt;/STRONG&gt; (under the MS SQL source endpoint à advanced tab à internal parameters)&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Oct 2021 12:36:53 GMT</pubDate>
    <dc:creator>OritA</dc:creator>
    <dc:date>2021-10-22T12:36:53Z</dc:date>
    <item>
      <title>Replication of MS SQL tables that include computed columns</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Replication-of-MS-SQL-tables-that-include-computed-columns/ta-p/1850667</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;When running a Replicate task with &lt;STRONG&gt;MS SQL source endpoint&lt;/STRONG&gt;, replication of computed columns is supported for Full Load only. This limitation is also mentioned in the Replicate User Guide:&lt;/P&gt;
&lt;P&gt;“"Replication&amp;nbsp;of computed columns is supported in Full Load&amp;nbsp;replication&amp;nbsp;tasks only.&lt;STRONG&gt;&amp;nbsp;During change processing, INSERTs to computed columns will appear as NULL on the target and UPDATEs will be ignored&lt;/STRONG&gt;."&lt;/P&gt;
&lt;P&gt;If you have a table with computed column and you would still like that the value of the computed column will be replicated to the target you can do one of the following:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Option 1 :&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;In the Replicate UI under task design --&amp;gt; Table settings (of the table with the computed column) --&amp;gt; transform&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Remove the computed column from the output columns list&lt;/LI&gt;
&lt;LI&gt;Add a new column (with the name that you wish to be created in the target) and define the desired computation expression (should be similar to the computation expression defined for the computed column in the source endpoint)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;EM&gt;Note &lt;/EM&gt;: with this setting Replicate will do the required computation (instead of the db).&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Option 2:&lt;/U&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In the target endpoint create the table DDL with the computed column expression manually&lt;/LI&gt;
&lt;LI&gt;In the Replicate UI under task setting --&amp;gt; Full Load --&amp;gt; Full Load Settings --&amp;gt; If target table already exists: &amp;nbsp;set the option to ‘TRUNCATE before loading’&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;EM&gt;Note&lt;/EM&gt;: &amp;nbsp;this setting affects all task tables. i.e. if you choose this option you would have to create by yourself, &amp;nbsp;in the target endpoint, &amp;nbsp;the DDL of all tables included in the task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you wish, you can set Replicate to suspend tables with computed columns that are included in CDC tasks. This can be done by setting the internal parameter &lt;STRONG&gt;suspendTableWithComputedColumn&lt;/STRONG&gt; to &lt;STRONG&gt;True&lt;/STRONG&gt; (under the MS SQL source endpoint à advanced tab à internal parameters)&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Oct 2021 12:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Replication-of-MS-SQL-tables-that-include-computed-columns/ta-p/1850667</guid>
      <dc:creator>OritA</dc:creator>
      <dc:date>2021-10-22T12:36:53Z</dc:date>
    </item>
  </channel>
</rss>

