<?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: Disable DDL replication for MSSQL in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998147#M4032</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/192253"&gt;@sergsyb&lt;/a&gt;&amp;nbsp;, copy&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121014"&gt;@Dana_Baldwin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Glad to hear you manage it to work.&lt;/P&gt;
&lt;P&gt;To make it more clear, I'd like to understand more about the&amp;nbsp;&amp;nbsp;&lt;A title="Memory-Optimized table" href="https://learn.microsoft.com/en-us/sql/relational-databases/in-memory-oltp/defining-durability-for-memory-optimized-objects?view=sql-server-ver16" target="_blank" rel="noopener"&gt;Memory-Optimized table&lt;/A&gt;&amp;nbsp; in your environment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are 2 &lt;SPAN&gt;durability options for memory-optimized tables,&amp;nbsp;SCHEMA_AND_DATA&amp;nbsp; &amp;amp;&amp;nbsp;&amp;nbsp;SCHEMA_ONLY.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SCHEMA_ONLY: no&amp;nbsp;transaction logging records for the DML. It's meaningless to add this type of table to replication as no way to get record changes by parsing TLOG.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SCHEMA_AND_DATA :&amp;nbsp;similar to a disk-based table, transaction logging is available. To my understanding you are running this type of memory-optimized table. Please confirm.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 14:42:07 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2022-10-28T14:42:07Z</dc:date>
    <item>
      <title>Disable DDL replication for MSSQL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1997779#M4028</link>
      <description>&lt;P&gt;There is a database which in addition to classic (disk-based) tables includes some memory optimized tables. If this DB &amp;nbsp;add to replication, several database triggers will be created to support DDL replication such as&lt;/P&gt;
&lt;P&gt;tr_MStran_alterschemaonly , tr_MStran_altertable ,&amp;nbsp; tr_MStran_altertrigger,&amp;nbsp; tr_MStran_alterview, tr_MStran_droptable&lt;/P&gt;
&lt;P&gt;But if we then try to alter memory optimized table it will fail with following error -&lt;STRONG&gt;&lt;EM&gt; Database and server triggers on DDL statements CREATE, ALTER and DROP are not supported with memory optimized tables.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We are ready not replicate DDL for this DB at all, to be able to alter memory optimized table, but there is not such option in MSSQL endpoint like – not replicate DDL.&lt;/P&gt;
&lt;P&gt;It will be safe to just drop these triggers and continue to use DML replication only? Or may be there is another way not replicate DDL?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 16:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1997779#M4028</guid>
      <dc:creator>sergsyb</dc:creator>
      <dc:date>2022-10-27T16:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disable DDL replication for MSSQL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1997786#M4029</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;Triggers on source objects are not replicated to the target, only things such as dropping/truncating/altering the table (column attributes for example). You can have the task ignore these DDL activities on the source by changing the default settings in Task Settings &amp;gt; Change Processing &amp;gt; Apply Changes Settings.&lt;/P&gt;
&lt;P&gt;Please let us know if this helps, and if so mark the reply as an accepted solution.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 16:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1997786#M4029</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2022-10-27T16:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Disable DDL replication for MSSQL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998065#M4031</link>
      <description>&lt;P&gt;Hi Dana,&lt;/P&gt;
&lt;P&gt;Our goal to get rid of database MSSQL system triggers like following&lt;/P&gt;
&lt;P&gt;tr_MStran_alterschemaonly , tr_MStran_altertable ,&amp;nbsp; tr_MStran_altertrigger,&amp;nbsp; tr_MStran_alterview, tr_MStran_droptable&lt;/P&gt;
&lt;P&gt;which were created automatically when MSSQL DB has been added to replication. These triggers block using DDL for memory optimized table in DB which has been added to replication.&lt;/P&gt;
&lt;P&gt;But it seems I have found a solution I have just disable its&lt;/P&gt;
&lt;P&gt;DISABLE TRIGGER tr_MStran_altertable ON DATABASE;&lt;/P&gt;
&lt;P&gt;DISABLE TRIGGER tr_MStran_alterview ON DATABASE;&lt;/P&gt;
&lt;P&gt;DISABLE TRIGGER tr_MStran_alterschemaonly ON DATABASE;&lt;/P&gt;
&lt;P&gt;DISABLE TRIGGER tr_MStran_altertrigger ON DATABASE;&lt;/P&gt;
&lt;P&gt;DISABLE TRIGGER tr_MStran_droptable ON DATABASE;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, DDL for memory optimized table run successfully now. A Qlik replication also works well.&amp;nbsp; And the most interesting is that QlikReplicate replicates DDL as well good as DML.&lt;/P&gt;
&lt;P&gt;I wanted to disable DDL replication before, because I supposed that QlikReplicate uses these MSSQL system triggers to support DDL replication. But it seems QR using something own for this purpose.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 11:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998065#M4031</guid>
      <dc:creator>sergsyb</dc:creator>
      <dc:date>2022-10-28T11:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disable DDL replication for MSSQL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998147#M4032</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/192253"&gt;@sergsyb&lt;/a&gt;&amp;nbsp;, copy&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121014"&gt;@Dana_Baldwin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Glad to hear you manage it to work.&lt;/P&gt;
&lt;P&gt;To make it more clear, I'd like to understand more about the&amp;nbsp;&amp;nbsp;&lt;A title="Memory-Optimized table" href="https://learn.microsoft.com/en-us/sql/relational-databases/in-memory-oltp/defining-durability-for-memory-optimized-objects?view=sql-server-ver16" target="_blank" rel="noopener"&gt;Memory-Optimized table&lt;/A&gt;&amp;nbsp; in your environment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are 2 &lt;SPAN&gt;durability options for memory-optimized tables,&amp;nbsp;SCHEMA_AND_DATA&amp;nbsp; &amp;amp;&amp;nbsp;&amp;nbsp;SCHEMA_ONLY.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SCHEMA_ONLY: no&amp;nbsp;transaction logging records for the DML. It's meaningless to add this type of table to replication as no way to get record changes by parsing TLOG.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SCHEMA_AND_DATA :&amp;nbsp;similar to a disk-based table, transaction logging is available. To my understanding you are running this type of memory-optimized table. Please confirm.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 14:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998147#M4032</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-10-28T14:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disable DDL replication for MSSQL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998225#M4034</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;
&lt;P&gt;In my case I have both types of tables in one Database: memory optimized tables and classic disk-based tables.&lt;BR /&gt;Some disk-based tables from this DB should be replicated. But memory optimized tables don't need to be repicated , but for this tables we need to provide possibilty to change its DDL .&lt;BR /&gt;The issue raised when replication had been enabled, several system's triggers were created and they blocked changing DDL for memory optimized tables.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 19:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998225#M4034</guid>
      <dc:creator>sergsyb</dc:creator>
      <dc:date>2022-10-28T19:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Disable DDL replication for MSSQL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998259#M4037</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;Thank you for your clarification.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 00:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Disable-DDL-replication-for-MSSQL/m-p/1998259#M4037</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-10-29T00:48:50Z</dc:date>
    </item>
  </channel>
</rss>

