<?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: Using Unique index instead of PK in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002824#M4161</link>
    <description>&lt;P&gt;Thanks &lt;SPAN&gt;Kelly ,&amp;nbsp;Swathi&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It's a pity that Qlik Replicate couldn’t use an unique index instead of PK. &lt;BR /&gt;May be it make sence to create feature request to support using an unique index instead of PK? Or may be such feature request already exists?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 07:33:45 GMT</pubDate>
    <dc:creator>sergsyb</dc:creator>
    <dc:date>2022-11-10T07:33:45Z</dc:date>
    <item>
      <title>Using Unique index instead of PK</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002183#M4143</link>
      <description>&lt;P&gt;Hi guru,&lt;BR /&gt;The Source is MS SQL Server. We are trying to replicate table which doesn’t have PK, but it has an Unique index.&lt;BR /&gt;QR recognize Unique index and in table setting windows we can see&lt;/P&gt;
&lt;P&gt;Record identifier -- Unique index&lt;BR /&gt;Identifier key -- index nameClusteredIndex-20221109-085004&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But nonetheless QR print following message in errorlog - MS-REPLICATION is not enabled for table 'dbo.nopk'. Therefore, UPDATE changes to it will not be captured.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Documentation states following -MS-REPLICATION requires each of the source tables to have a primary key. But what about Unique index, which in the same way explicitly identifies a row in a table?&lt;BR /&gt;Why QR can’t use an unique index instead of Primary Key?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 08:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002183#M4143</guid>
      <dc:creator>sergsyb</dc:creator>
      <dc:date>2022-11-09T08:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Unique index instead of PK</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002325#M4147</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/192253"&gt;@sergsyb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;DIV class="slds-form-element__control slds-grid itemBody" data-aura-rendered-by="15190:0"&gt;
&lt;DIV class="slds-rich-text-editor__output uiOutputRichText forceOutputRichText forceKnowledgeOutputRichTextForKnowledge" dir="ltr" data-aura-rendered-by="15182:0" data-aura-class="uiOutputRichText forceOutputRichText forceKnowledgeOutputRichTextForKnowledge"&gt;
&lt;P data-aura-rendered-by="15183:0"&gt;There is no way to avoid this warning message without setting up a PK on the table or enabling MS-CDC/ MS -Replicate.&lt;/P&gt;
&lt;P data-aura-rendered-by="15183:0"&gt;This is a documented limitation for the SQL Server as a source endpoint.&lt;/P&gt;
&lt;P data-aura-rendered-by="15183:0"&gt;Because you do not have a PK set up on this table, the following limitation applies (and is the cause for warning message):&lt;BR /&gt;&lt;BR /&gt;If your database is not set up for MS-REPLICATION or MS-CDC, you can still capture tables that do not have a Primary Key, but bear in mind that in such a setup only INSERT/DELETE DML events will be captured. UPDATE events will be ignored.&lt;BR /&gt;&lt;BR /&gt;It is also important to note that a DELETE statement executed on an UPDATED source record, will not be applied on the target.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/replicate/November2021/Content/Replicate/Main/SQL%20Server/limitations_source_SQLServerDB.htm" target="_blank"&gt;https://help.qlik.com/en-US/replicate/November2020/Content/Replicate/Main/SQL%20Server/limitations_source_SQLServerDB.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/replicate/November2021/Content/Replicate/Main/SQL%20Server/Replicate_Tables_that_do_not_have_a_Primary_Key.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/replicate/November2021/Content/Replicate/Main/SQL%20Server/Replicate_Tables_that_do_not_have_a_Primary_Key.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thus your options are:&lt;BR /&gt;&lt;BR /&gt;1. Set up MS-Replicate or MS-CDC on this table&lt;BR /&gt;&lt;BR /&gt;2. Define a PK on the table&lt;BR /&gt;&lt;BR /&gt;3. Accept the limitation of no UPDATE and ignore the warning&lt;/P&gt;
&lt;P data-aura-rendered-by="15183:0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-aura-rendered-by="15183:0"&gt;Thank you,&lt;/P&gt;
&lt;P data-aura-rendered-by="15183:0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-aura-rendered-by="15183:0"&gt;Kelly&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Nov 2022 11:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002325#M4147</guid>
      <dc:creator>KellyHobson</dc:creator>
      <dc:date>2022-11-09T11:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Unique index instead of PK</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002403#M4152</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/192253"&gt;@sergsyb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding a few more points to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149534"&gt;@KellyHobson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp; PK is mandatory for MS-replication Transactional publication and that is the reason you can't use non-pk tables with an MS-replication setup.&amp;nbsp;&lt;SPAN&gt;Define a PK on the table or&amp;nbsp;Accept the limitation of no UPDATE and ignore the warning if you want to go with MS replication&amp;nbsp;setup.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) for non-pk tables go with the MS-CDC setup.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://help.qlik.com/en-US/replicate/November2021/Content/Replicate/Main/SQL%20Server/Replicate_Tables_that_do_not_have_a_Primary_Key.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;https://help.qlik.com/en-US/replicate/November2021/Content/Replicate/Main/SQL%20Server/Replicate_Tab...&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Swathi&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002403#M4152</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2022-11-09T13:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Unique index instead of PK</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002824#M4161</link>
      <description>&lt;P&gt;Thanks &lt;SPAN&gt;Kelly ,&amp;nbsp;Swathi&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It's a pity that Qlik Replicate couldn’t use an unique index instead of PK. &lt;BR /&gt;May be it make sence to create feature request to support using an unique index instead of PK? Or may be such feature request already exists?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 07:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2002824#M4161</guid>
      <dc:creator>sergsyb</dc:creator>
      <dc:date>2022-11-10T07:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Unique index instead of PK</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2003191#M4166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/192253"&gt;@sergsyb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you would like to submit a feature request, you can do so here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Ideas/idb-p/qlik-ideas" target="_blank"&gt;https://community.qlik.com/t5/Ideas/idb-p/qlik-ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 16:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Using-Unique-index-instead-of-PK/m-p/2003191#M4166</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2022-11-10T16:12:34Z</dc:date>
    </item>
  </channel>
</rss>

