<?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 Qlik Replicate: How to create PRIMARY INDEX rather than PRIMARY KEY in Teradata Target DB in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-create-PRIMARY-INDEX-rather-than-PRIMARY/ta-p/1952113</link>
    <description>&lt;P&gt;Sometimes the target default endpoint behavior does not meet our needs. This article is useful if we want to modify the default syntax.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, while Teradata is the target endpoint, Qlik Replicate creates a &lt;STRONG&gt;PRIMARY KEY&lt;/STRONG&gt; by default if the source table has the &lt;STRONG&gt;PRIMARY KEY&lt;/STRONG&gt; as well.&amp;nbsp; Users want to create a &lt;STRONG&gt;PRIMARY INDEX&lt;/STRONG&gt; rather than a&amp;nbsp;&lt;STRONG&gt;PRIMARY KEY&lt;/STRONG&gt; in Teradata Target tables.&lt;/P&gt;
&lt;P&gt;The below steps demonstrate how to customise the &lt;STRONG&gt;CREATE TABLE&lt;/STRONG&gt; behavior.&lt;/P&gt;
&lt;H4 id="toc-hId-1975494344"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Environment&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate All supported versions&lt;/LI&gt;
&lt;LI&gt;Teradata All supported versions&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 id="toc-hId-168039881"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Detailed Steps&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;To achieve this, we will add an&amp;nbsp;&lt;STRONG&gt;Internal Parameter&amp;nbsp;&lt;/STRONG&gt;to the Endpoint.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open &lt;SPAN class="inner-text"&gt;&lt;STRONG&gt;Manage Endpoint Connections&lt;/STRONG&gt; in the Qlik Replicate console GUI&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Go to the Endpoint connection&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Switch to the&amp;nbsp;&lt;STRONG&gt;Advanced&lt;/STRONG&gt; tab &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Click &lt;STRONG&gt;Internal Parameters&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add the following parameter: &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;
&lt;PRE&gt;$info.query_syntax.create_primary_key&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Add the following value:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;PRE&gt;) PRIMARY INDEX ( ${COLUMN_LIST}&lt;/PRE&gt;
&lt;BR /&gt;For more information about Internal Parameters, see &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-set-Internal-Parameters-and-what-are-they/ta-p/2036183" target="_blank" rel="noopener"&gt;Qlik Replicate: How to set Internal Parameters and what are they for?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="internal parameter primary index.png" style="width: 465px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171761i7C89C23A1D5F7175/image-dimensions/465x470?v=v2" width="465" height="470" role="button" title="internal parameter primary index.png" alt="internal parameter primary index.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Run the task&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3 id="toc-hId-157536777"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Another approach:&amp;nbsp;&lt;A title="How to custom target endpoint syntax" href="https://community.qlik.com/t5/Qlik-Replicate/Replicate-How-to-custom-target-endpoint-syntax/m-p/1849904#M1200" target="_blank" rel="noopener"&gt;How to custom target endpoint syntax&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;00043847&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 08:23:30 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2024-09-17T08:23:30Z</dc:date>
    <item>
      <title>Qlik Replicate: How to create PRIMARY INDEX rather than PRIMARY KEY in Teradata Target DB</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-create-PRIMARY-INDEX-rather-than-PRIMARY/ta-p/1952113</link>
      <description>&lt;P&gt;Sometimes the target default endpoint behavior does not meet our needs. This article is useful if we want to modify the default syntax.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, while Teradata is the target endpoint, Qlik Replicate creates a &lt;STRONG&gt;PRIMARY KEY&lt;/STRONG&gt; by default if the source table has the &lt;STRONG&gt;PRIMARY KEY&lt;/STRONG&gt; as well.&amp;nbsp; Users want to create a &lt;STRONG&gt;PRIMARY INDEX&lt;/STRONG&gt; rather than a&amp;nbsp;&lt;STRONG&gt;PRIMARY KEY&lt;/STRONG&gt; in Teradata Target tables.&lt;/P&gt;
&lt;P&gt;The below steps demonstrate how to customise the &lt;STRONG&gt;CREATE TABLE&lt;/STRONG&gt; behavior.&lt;/P&gt;
&lt;H4 id="toc-hId-1975494344"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Environment&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate All supported versions&lt;/LI&gt;
&lt;LI&gt;Teradata All supported versions&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 id="toc-hId-168039881"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Detailed Steps&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;To achieve this, we will add an&amp;nbsp;&lt;STRONG&gt;Internal Parameter&amp;nbsp;&lt;/STRONG&gt;to the Endpoint.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open &lt;SPAN class="inner-text"&gt;&lt;STRONG&gt;Manage Endpoint Connections&lt;/STRONG&gt; in the Qlik Replicate console GUI&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Go to the Endpoint connection&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Switch to the&amp;nbsp;&lt;STRONG&gt;Advanced&lt;/STRONG&gt; tab &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Click &lt;STRONG&gt;Internal Parameters&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add the following parameter: &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;
&lt;PRE&gt;$info.query_syntax.create_primary_key&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Add the following value:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;PRE&gt;) PRIMARY INDEX ( ${COLUMN_LIST}&lt;/PRE&gt;
&lt;BR /&gt;For more information about Internal Parameters, see &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-set-Internal-Parameters-and-what-are-they/ta-p/2036183" target="_blank" rel="noopener"&gt;Qlik Replicate: How to set Internal Parameters and what are they for?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="internal parameter primary index.png" style="width: 465px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171761i7C89C23A1D5F7175/image-dimensions/465x470?v=v2" width="465" height="470" role="button" title="internal parameter primary index.png" alt="internal parameter primary index.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Run the task&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3 id="toc-hId-157536777"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Another approach:&amp;nbsp;&lt;A title="How to custom target endpoint syntax" href="https://community.qlik.com/t5/Qlik-Replicate/Replicate-How-to-custom-target-endpoint-syntax/m-p/1849904#M1200" target="_blank" rel="noopener"&gt;How to custom target endpoint syntax&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;00043847&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 08:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-How-to-create-PRIMARY-INDEX-rather-than-PRIMARY/ta-p/1952113</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-09-17T08:23:30Z</dc:date>
    </item>
  </channel>
</rss>

