<?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: How to get the MSSQL Transaction_ID in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1889753#M1811</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163437"&gt;@--Brad--&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I was in public holiday in the past week. Sorry for the delay.&lt;/P&gt;&lt;P&gt;I'm afraid we are unable to get &lt;STRONG&gt;&lt;EM&gt;XACT_ID &lt;/EM&gt;&lt;/STRONG&gt;from TLOG in current Replicate versions yet. you may find all the header information by enable the store changes table. Please raise Feature Request in&amp;nbsp;&lt;A title="Suggest an Idea" href="https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas" target="_blank" rel="noopener"&gt;Suggest an Idea&lt;/A&gt;&amp;nbsp;area if you really need it.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 13:48:10 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2022-02-07T13:48:10Z</dc:date>
    <item>
      <title>How to get the MSSQL Transaction_ID</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1886275#M1752</link>
      <description>&lt;P&gt;I am trying to tie the Qlik Replicate change table to data in SQL Audit on MS SQL Server.&amp;nbsp; I thought I would be able to do this with the transaction_id in Qlik Replicate, but that transaction_id does not match the transaction_id generated by MS SQL.&lt;/P&gt;
&lt;P&gt;Qlik's is alphanumeric where SQL's is numeric only.&amp;nbsp; I read in the &lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;documentation that &lt;SPAN&gt;The actual value is a hex-string of the 128-bit transaction ID." but when I decode Qlik's transaction_id, it still is not similar to what is in SQL:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-01-27 09_28_53-_C__Users_bcrandell_Downloads_20220127-140703359.csv - Notepad++.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71130i9496CB87FEECFC81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-01-27 09_28_53-_C__Users_bcrandell_Downloads_20220127-140703359.csv - Notepad++.png" alt="2022-01-27 09_28_53-_C__Users_bcrandell_Downloads_20220127-140703359.csv - Notepad++.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Are these totally different transaction_ids?&amp;nbsp; Am I just decoding it incorrectly?&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Can I get the SQL transaction_id some other way?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;BR /&gt;Brad&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 13:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1886275#M1752</guid>
      <dc:creator>--Brad--</dc:creator>
      <dc:date>2022-01-28T13:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the MSSQL Transaction_ID</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1886816#M1760</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163437"&gt;@--Brad--&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is really a good question. Per my researching:&lt;/P&gt;&lt;P&gt;1. I'm afraid there is not an explicit mapping between&amp;nbsp;transaction_id (in sys.dm_tran_database_transactions or other similar views) and&amp;nbsp;[Transaction ID] (in TLOG, or say in fn_dblog() ). You cannot convert from one to another by a formula or vice versa because they are totally different things.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; However we can find their relationship, I will describe in detailed below.&lt;/P&gt;&lt;P&gt;2. In Replicate, we use&amp;nbsp;&amp;nbsp;[Transaction ID] which gets from TLOG.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; This is what you see in column "header__transaction_id".&lt;/P&gt;&lt;P&gt;3. Personally I do not think you can use&amp;nbsp;transaction_id&amp;nbsp; for your SQL Audit purpose, at least it's hard to use because it restarts at 0 after a server restart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to find out&amp;nbsp;header__transaction_id by&amp;nbsp;transaction_id&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get&amp;nbsp;transaction_id from active transactions:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from sys.dm_tran_database_transactions WHERE  database_id = DB_ID();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In my sample, the&amp;nbsp;transaction_id is 18129.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get the&amp;nbsp;[Transaction ID] from TLOG by using&amp;nbsp;transaction_id 18129&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT [Transaction ID]
FROM   sys.fn_dblog(NULL, NULL)
WHERE  [Xact ID] = 18129;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In my sample the&amp;nbsp;[Transaction ID] is '0000:000016e6'&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get other information from TLOG by using&amp;nbsp;[Transaction ID]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT *                                  
FROM   sys.fn_dblog(NULL, NULL)           
WHERE  [Transaction ID] = '0000:000016e6';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In Replicate target table the&amp;nbsp;header__transaction_id looks like:&amp;nbsp;E6160000000000000000000000000000&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 01:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1886816#M1760</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-01-31T01:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the MSSQL Transaction_ID</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1887729#M1770</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I see the relationship that you are talking about&amp;nbsp; and have been able to trace the lineage from Replicate's&amp;nbsp;&lt;SPAN&gt;header__transaction_id to the transaction_id that's in SQL Audit.&amp;nbsp; I am working through how I would do this in a production scenario and my options don't seem ideal so far.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2022-02-01 10_54_54-SQLQuery12.sql - XAISQL841.TEMP_MARQUIS_20220113143213743_BCRANDELL (HCHBCORP_bc.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71376i77B62F1AE48C5AD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-02-01 10_54_54-SQLQuery12.sql - XAISQL841.TEMP_MARQUIS_20220113143213743_BCRANDELL (HCHBCORP_bc.png" alt="2022-02-01 10_54_54-SQLQuery12.sql - XAISQL841.TEMP_MARQUIS_20220113143213743_BCRANDELL (HCHBCORP_bc.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am wondering:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Is there any way to get Qlik Replicate to capture the XACT_ID (ie: transaction_id from SQL Audit) that is in the LDF file at the same time it is importing the rest of the data changes?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Brad&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 16:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1887729#M1770</guid>
      <dc:creator>--Brad--</dc:creator>
      <dc:date>2022-02-01T16:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the MSSQL Transaction_ID</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1889753#M1811</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163437"&gt;@--Brad--&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I was in public holiday in the past week. Sorry for the delay.&lt;/P&gt;&lt;P&gt;I'm afraid we are unable to get &lt;STRONG&gt;&lt;EM&gt;XACT_ID &lt;/EM&gt;&lt;/STRONG&gt;from TLOG in current Replicate versions yet. you may find all the header information by enable the store changes table. Please raise Feature Request in&amp;nbsp;&lt;A title="Suggest an Idea" href="https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas" target="_blank" rel="noopener"&gt;Suggest an Idea&lt;/A&gt;&amp;nbsp;area if you really need it.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1889753#M1811</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-02-07T13:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the MSSQL Transaction_ID</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1890689#M1825</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163437"&gt;@--Brad--&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Noticed you opened an idea article&amp;nbsp;&lt;A title="Capture XACT ID transaction ID during MS SQL Replication" href="https://community.qlik.com/t5/Suggest-an-Idea/Capture-XACT-ID-transaction-ID-during-MS-SQL-Replication/idi-p/1889822" target="_blank" rel="noopener"&gt;Capture XACT ID transaction ID during MS SQL Replication&lt;/A&gt;&amp;nbsp;. Let's wait for PM team update.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 01:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1890689#M1825</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-02-09T01:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the MSSQL Transaction_ID</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1890967#M1827</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-get-the-MSSQL-Transaction-ID/m-p/1890967#M1827</guid>
      <dc:creator>--Brad--</dc:creator>
      <dc:date>2022-02-09T12:59:52Z</dc:date>
    </item>
  </channel>
</rss>

