<?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 Possible SCD bugs found in tMSSQLSCD and tMYSQLSCD in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301204#M73349</link>
    <description>&lt;P&gt;Good day guys&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I might have uncovered potential bugs in the tMSSQLSCD and tMYSQLSCD components. I am rather new to this so your input and double checking will be appreciated. I will explain my jobs below:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(MSSQLSCD is very bad, MYSQLSCD is much better, but there is one bug).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Job 1: Testing a POC using tMSSQLSCD (Microsoft SQL Server)&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;I pull client related data from various sources into a single client table.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The table has the following columns:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SQLServerTable.PNG" style="width: 386px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvAi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142120i407666982F5986BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvAi.png" alt="0683p000009LvAi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The column in red is the client number, and the columns in yellow is what I use for the SCD Type 2. Here is my SCD setup for my SCD job that handles changes in client phone numbers (for the POC we only care about phone numbers):&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mssqlscd.PNG" style="width: 686px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Luye.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140142i0D46798A604EAF88/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Luye.png" alt="0683p000009Luye.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;As you can see, I only really care about the phone numbers for my POC, and I also specify the start and end data, as well as the "is_active" column that Talend should set to 0 or 1.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;But here is the problem:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SQLServerData.PNG" style="width: 873px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv9l.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155476iC084B861F303E75B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv9l.png" alt="0683p000009Lv9l.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can see, even though the phone numbers stay the same, the MSSQLSCD component creates a new surrogate key. Also, it never sets the end_date to the proper date, and it also never sets the is_active to 0.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But, I did find the update code in the Talend job but it never gets executed (I ran SQL Server Profiler, but there are always only insert jobs, never update jobs):&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MSSQLCode.PNG" style="width: 836px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvE6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143967iE47936498D149624/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvE6.png" alt="0683p000009LvE6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Job 2:&amp;nbsp;Testing a POC using tMYSQLSCD (MYSQL)&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;The MySQL version of the jobs look exactly the same, only the SCD component was changed to the tMYSQLSCD connector.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It works A LOT better than the SQL Server job, see below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MySQLData.PNG" style="width: 778px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvEt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155258iBF039B7325101B5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvEt.png" alt="0683p000009LvEt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can see, only when the phone numbers change, will it create a new record (which is 100% correct and the way it should work. Even if I run the job 5 times with the same phone numbers, it will only insert a record once, not like SQL Server where it inserts a record every time even when the data did not change).&lt;/P&gt; 
&lt;P&gt;The start_date and end_date columns are also working very well, but the is_active column is never populated with a 0 or a 1.&lt;/P&gt; 
&lt;P&gt;Here is my MySQL SCD:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MySQLSCD.PNG" style="width: 683px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvF3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134669i9BC88AA6740BF693/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvF3.png" alt="0683p000009LvF3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is also the code I could find in the Talend job that set the is_active column to 0:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MySQLCode.PNG" style="width: 836px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lurv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157147i46B224105A37022E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lurv.png" alt="0683p000009Lurv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now I am thinking that the data type of my is_active column (which currently is varchar) should be something else. The reason I am saying this is because all the other columns update properly, except the is_active column.&lt;/P&gt; 
&lt;P&gt;I ran the above update in MySQL on the is_active column (is_active = b'0') and it also didn't update the value, so I think that my data type is wrong perhaps.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please can you have a look at the above. I am more interested in getting the SQL Server portion working because we want to use SQL Server going forward, but MySQL will be fine for the POC.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advance!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Leigh&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 13:49:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-28T13:49:59Z</dc:date>
    <item>
      <title>Possible SCD bugs found in tMSSQLSCD and tMYSQLSCD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301204#M73349</link>
      <description>&lt;P&gt;Good day guys&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I might have uncovered potential bugs in the tMSSQLSCD and tMYSQLSCD components. I am rather new to this so your input and double checking will be appreciated. I will explain my jobs below:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(MSSQLSCD is very bad, MYSQLSCD is much better, but there is one bug).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Job 1: Testing a POC using tMSSQLSCD (Microsoft SQL Server)&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;I pull client related data from various sources into a single client table.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The table has the following columns:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SQLServerTable.PNG" style="width: 386px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvAi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142120i407666982F5986BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvAi.png" alt="0683p000009LvAi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The column in red is the client number, and the columns in yellow is what I use for the SCD Type 2. Here is my SCD setup for my SCD job that handles changes in client phone numbers (for the POC we only care about phone numbers):&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mssqlscd.PNG" style="width: 686px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Luye.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140142i0D46798A604EAF88/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Luye.png" alt="0683p000009Luye.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;As you can see, I only really care about the phone numbers for my POC, and I also specify the start and end data, as well as the "is_active" column that Talend should set to 0 or 1.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;But here is the problem:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SQLServerData.PNG" style="width: 873px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv9l.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155476iC084B861F303E75B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv9l.png" alt="0683p000009Lv9l.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can see, even though the phone numbers stay the same, the MSSQLSCD component creates a new surrogate key. Also, it never sets the end_date to the proper date, and it also never sets the is_active to 0.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But, I did find the update code in the Talend job but it never gets executed (I ran SQL Server Profiler, but there are always only insert jobs, never update jobs):&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MSSQLCode.PNG" style="width: 836px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvE6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143967iE47936498D149624/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvE6.png" alt="0683p000009LvE6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Job 2:&amp;nbsp;Testing a POC using tMYSQLSCD (MYSQL)&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;The MySQL version of the jobs look exactly the same, only the SCD component was changed to the tMYSQLSCD connector.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It works A LOT better than the SQL Server job, see below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MySQLData.PNG" style="width: 778px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvEt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155258iBF039B7325101B5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvEt.png" alt="0683p000009LvEt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can see, only when the phone numbers change, will it create a new record (which is 100% correct and the way it should work. Even if I run the job 5 times with the same phone numbers, it will only insert a record once, not like SQL Server where it inserts a record every time even when the data did not change).&lt;/P&gt; 
&lt;P&gt;The start_date and end_date columns are also working very well, but the is_active column is never populated with a 0 or a 1.&lt;/P&gt; 
&lt;P&gt;Here is my MySQL SCD:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MySQLSCD.PNG" style="width: 683px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvF3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134669i9BC88AA6740BF693/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvF3.png" alt="0683p000009LvF3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is also the code I could find in the Talend job that set the is_active column to 0:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MySQLCode.PNG" style="width: 836px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lurv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157147i46B224105A37022E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lurv.png" alt="0683p000009Lurv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now I am thinking that the data type of my is_active column (which currently is varchar) should be something else. The reason I am saying this is because all the other columns update properly, except the is_active column.&lt;/P&gt; 
&lt;P&gt;I ran the above update in MySQL on the is_active column (is_active = b'0') and it also didn't update the value, so I think that my data type is wrong perhaps.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please can you have a look at the above. I am more interested in getting the SQL Server portion working because we want to use SQL Server going forward, but MySQL will be fine for the POC.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advance!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Leigh&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301204#M73349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Possible SCD bugs found in tMSSQLSCD and tMYSQLSCD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301205#M73350</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please indicate on which build version you got this issue?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301205#M73350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T08:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Possible SCD bugs found in tMSSQLSCD and tMYSQLSCD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301206#M73351</link>
      <description>&lt;P&gt;Hi Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using Talend Open Studio for Big Data version 6.3.1. There is no build ID, it is just blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leigh&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 09:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301206#M73351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T09:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Possible SCD bugs found in tMSSQLSCD and tMYSQLSCD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301207#M73352</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Does this issue still repro on V 6.4?&lt;/P&gt;
&lt;P&gt;Would you mind sending us your job by .zip file? So that we can make a testing on this issue.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 07:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301207#M73352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-05T07:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Possible SCD bugs found in tMSSQLSCD and tMYSQLSCD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301208#M73353</link>
      <description>&lt;P&gt;Hi Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for the reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please see attached 2 jobs. One for MySQL and one for SQL Server. You will also find attached a text file with my test data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is a brief description of the jobs and also the create table statements:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The first time I ran the job, I ran it with the data below (attached) just to populate my table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="InitialData.PNG" style="width: 622px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvL6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147832i5CF7B20041FD4925/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvL6.png" alt="0683p000009LvL6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Then the second time I ran the job, I changed the portions in yellow to CHANGE, CHANGE and ran my job again. It updated the MySQL table's date fields correctly and also added the new record, but it didn't update the is_active field:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mySQLchange.PNG" style="width: 748px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvB4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136709iE65E5A95E23CF230/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvB4.png" alt="0683p000009LvB4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For the MSSQL job, I did exactly the same thing, the SCD just happens on Microsoft SQL Server. As you can see in the image below, I imported the data, and then changed the fields that say CHANGE to CHANGE2, but the dates and is_active fields never update.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SQLServer.PNG" style="width: 674px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv9G.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141696i4BF36806CB865F99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv9G.png" alt="0683p000009Lv9G.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here are the create table statements for MySQL and SQL Server:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;MYSQL:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2"&gt;CREATE TABLE `dm_merchant2` (&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`MRCH_ACCT_NO` varchar(100) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`company` varchar(100) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`STAT_CDE` varchar(100) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`open_date` varchar(100) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`close_date` varchar(100) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`segment` varchar(100) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`brand` varchar(100) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`sub_brand` varchar(100) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`surrogate_key` int(11) NOT NULL AUTO_INCREMENT,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`start_date` datetime DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`end_date` datetime DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;`is_active` varchar(10) DEFAULT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;PRIMARY KEY (`surrogate_key`)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;SQL Server:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2"&gt;CREATE TABLE [dbo].[dm_merchant2](&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[MRCH_ACCT_NO] [nchar](100) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[company] [nchar](100) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[STAT_CDE] [nchar](100) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[open_date] [nchar](100) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[close_date] [nchar](100) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[segment] [nchar](100) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[brand] [nchar](100) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[sub_brand] [nchar](100) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[surrogate_key] [int] IDENTITY(1,1) NOT NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[start_date] [datetime] NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[end_date] [datetime] NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[is_active] [char](1) NULL,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;PRIMARY KEY CLUSTERED &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;[surrogate_key] ASC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;) ON [PRIMARY]&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2"&gt;Let me know if you need more information.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2"&gt;Regards&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2"&gt;Leigh&lt;/FONT&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrRI"&gt;SCD.zip&lt;/A&gt;</description>
      <pubDate>Wed, 05 Jul 2017 09:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Possible-SCD-bugs-found-in-tMSSQLSCD-and-tMYSQLSCD/m-p/2301208#M73353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-05T09:27:37Z</dc:date>
    </item>
  </channel>
</rss>

