<?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 Question about MS_REPLICATION method specification for MS SQL Server source (Behavior during task stoppage) in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Question-about-MS-REPLICATION-method-specification-for-MS-SQL/m-p/2550719#M16389</link>
    <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I have a question regarding the "Start transactions in the database" mechanism under the MS_REPLICATION method with an MS SQL Server source.&lt;/P&gt;&lt;P&gt;I have reviewed the following official support article:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/5-Tips-for-Replicate-task-configuration-with-MS-SQL-server-as/ta-p/1793429" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/5-Tips-for-Replicate-task-configuration-with-MS-SQL-server-as/ta-p/1793429&lt;/A&gt;&lt;BR /&gt;- Tip 5: Prevent truncation of unread changes from TLOG&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Option 1: Start transactions in the database&lt;/P&gt;&lt;P&gt;From this article, I understand that while the Replicate task is running, truncation of unread TLOGs is prevented. However, I have a question regarding the behavior when the task is stopped.&lt;/P&gt;&lt;P&gt;Based on my verification in a test environment, even when the Qlik Replicate task is stopped, the SQL Server Log Reader Agent continues to run, reading logs and delivering them to the distribution database. My understanding is that the Log Reader Agent executes sp_repldone internally.&lt;/P&gt;&lt;P&gt;Therefore, I initially thought that if the Log Reader Agent completes reading the logs while the task is stopped, the synchronization checkpoint would be advanced (updated). However, even after stopping the task temporarily, I was able to successfully resume it without any issues.&lt;/P&gt;&lt;P&gt;Regarding this behavior, I have hypothesized the following mechanism. Could anyone please let me know if my understanding is correct?&lt;/P&gt;&lt;P&gt;・Why unread log truncation is prevented while the task is stopped:&lt;BR /&gt;　By design, SQL Server cannot truncate log space older than the "oldest currently open transaction." Qlik Replicate leaves a pseudo-transaction (backward latch) remaining at the Log Sequence Number (LSN) where it last finished reading.&lt;/P&gt;&lt;P&gt;・Behavior during task stoppage:&lt;BR /&gt;　Even if the task is intentionally stopped or fails due to an error, this open transaction remains active ("incomplete/open state") on the database. Therefore, even if the SQL Server Log Reader Agent executes sp_repldone periodically, the logs from the position where Qlik last read onward are protected and exempt 　from truncation.&lt;/P&gt;&lt;P&gt;If my understanding is incorrect or if there are other underlying mechanisms, please let me know.&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2026 02:55:07 GMT</pubDate>
    <dc:creator>iti-attunity-sup</dc:creator>
    <dc:date>2026-06-05T02:55:07Z</dc:date>
    <item>
      <title>Question about MS_REPLICATION method specification for MS SQL Server source (Behavior during task stoppage)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Question-about-MS-REPLICATION-method-specification-for-MS-SQL/m-p/2550719#M16389</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I have a question regarding the "Start transactions in the database" mechanism under the MS_REPLICATION method with an MS SQL Server source.&lt;/P&gt;&lt;P&gt;I have reviewed the following official support article:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/5-Tips-for-Replicate-task-configuration-with-MS-SQL-server-as/ta-p/1793429" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/5-Tips-for-Replicate-task-configuration-with-MS-SQL-server-as/ta-p/1793429&lt;/A&gt;&lt;BR /&gt;- Tip 5: Prevent truncation of unread changes from TLOG&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Option 1: Start transactions in the database&lt;/P&gt;&lt;P&gt;From this article, I understand that while the Replicate task is running, truncation of unread TLOGs is prevented. However, I have a question regarding the behavior when the task is stopped.&lt;/P&gt;&lt;P&gt;Based on my verification in a test environment, even when the Qlik Replicate task is stopped, the SQL Server Log Reader Agent continues to run, reading logs and delivering them to the distribution database. My understanding is that the Log Reader Agent executes sp_repldone internally.&lt;/P&gt;&lt;P&gt;Therefore, I initially thought that if the Log Reader Agent completes reading the logs while the task is stopped, the synchronization checkpoint would be advanced (updated). However, even after stopping the task temporarily, I was able to successfully resume it without any issues.&lt;/P&gt;&lt;P&gt;Regarding this behavior, I have hypothesized the following mechanism. Could anyone please let me know if my understanding is correct?&lt;/P&gt;&lt;P&gt;・Why unread log truncation is prevented while the task is stopped:&lt;BR /&gt;　By design, SQL Server cannot truncate log space older than the "oldest currently open transaction." Qlik Replicate leaves a pseudo-transaction (backward latch) remaining at the Log Sequence Number (LSN) where it last finished reading.&lt;/P&gt;&lt;P&gt;・Behavior during task stoppage:&lt;BR /&gt;　Even if the task is intentionally stopped or fails due to an error, this open transaction remains active ("incomplete/open state") on the database. Therefore, even if the SQL Server Log Reader Agent executes sp_repldone periodically, the logs from the position where Qlik last read onward are protected and exempt 　from truncation.&lt;/P&gt;&lt;P&gt;If my understanding is incorrect or if there are other underlying mechanisms, please let me know.&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 02:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Question-about-MS-REPLICATION-method-specification-for-MS-SQL/m-p/2550719#M16389</guid>
      <dc:creator>iti-attunity-sup</dc:creator>
      <dc:date>2026-06-05T02:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question about MS_REPLICATION method specification for MS SQL Server source (Behavior during task stoppage)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Question-about-MS-REPLICATION-method-specification-for-MS-SQL/m-p/2550731#M16390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142280"&gt;@iti-attunity-sup&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Regarding &lt;STRONG data-index-in-node="10" data-path-to-node="4,0"&gt;"Start transactions in the database"&lt;/STRONG&gt;, once the task is stopped, the active open transactions will be released and gone. The reason you observed that the task could still be resumed properly without data loss after being stopped temporarily is due to the following two scenarios:&lt;/P&gt;
&lt;UL data-path-to-node="4,2"&gt;
&lt;LI&gt;
&lt;P data-path-to-node="4,2,0,0"&gt;&lt;STRONG data-index-in-node="0" data-path-to-node="4,2,0,0"&gt;The TLOG hasn't been overwritten yet:&lt;/STRONG&gt; Even though the open transaction was released, the corresponding transaction logs in the online have not yet been truncated or overwritten by new incoming database activities. Qlik Replicate can still pick up where it left off directly from the active TLOG.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P data-path-to-node="4,2,1,0"&gt;&lt;STRONG data-index-in-node="0" data-path-to-node="4,2,1,0"&gt;Qlik Replicate fetched data from Backup Logs:&lt;/STRONG&gt; If a scheduled log backup occurred while the task was stopped, the active TLOG might have been truncated. However, because Qlik Replicate has the capability to read from backup files, it automatically goes to the SQL Server backup history, locates the relevant .trn files, and extracts the missing changes to resume the CDC chain seamlessly.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 08:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Question-about-MS-REPLICATION-method-specification-for-MS-SQL/m-p/2550731#M16390</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2026-06-05T08:24:58Z</dc:date>
    </item>
  </channel>
</rss>

