<?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: Update not updating rows based on datetime comparison? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Update-not-updating-rows-based-on-datetime-comparison/m-p/2241954#M28936</link>
    <description>this format is the correct (Java) one: "yyyy-MM-dd HH:mm:ss.SSS" 
&lt;BR /&gt;I dont fully understand the update process... from your writing I suggest take a look at the 3 date types in MSSQL and the one your output table is using/created... DATE, DATETIME, DATETIME2 
&lt;BR /&gt; 
&lt;BR /&gt;For what I can recall DATETIME2 is able to store more seconds precision and a wider date range. 
&lt;BR /&gt;Talend uses Datetime2 (Im not sure) 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
    <pubDate>Mon, 27 Aug 2018 23:58:44 GMT</pubDate>
    <dc:creator>Jesperrekuh</dc:creator>
    <dc:date>2018-08-27T23:58:44Z</dc:date>
    <item>
      <title>Update not updating rows based on datetime comparison?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-not-updating-rows-based-on-datetime-comparison/m-p/2241953#M28935</link>
      <description>&lt;P&gt;My source table and destination table is same.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;DB is Azure Sql server.&lt;/P&gt; 
&lt;P&gt;Job layout:&amp;nbsp;&amp;nbsp;source---&amp;gt;tmap---&amp;gt;tmssqlouput---&amp;gt;tmssqlcommit&lt;/P&gt; 
&lt;P&gt;Column used to compare is LDTS which is datetime coming from Ms sqlserver&lt;/P&gt; 
&lt;P&gt;In tmap, I've defined LDTS as follow, but none of them are working.&lt;/P&gt; 
&lt;P&gt;"yyyy-MM-dd HH:mm:ss.SS"&lt;/P&gt; 
&lt;P&gt;"yyyy-MM-dd HH:mm:ss.SSS"&lt;/P&gt; 
&lt;P&gt;"yyyy-MM-dd HH:mm:ss.aaa"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is a data truncation happening with the update process, if the date&lt;/P&gt; 
&lt;P&gt;is&amp;nbsp;2018-08-27 09:49:49.62&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/FONT&gt; then the comparison works, but if the date is&lt;/P&gt; 
&lt;P&gt;2018-08-27 09:47:03.35&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/FONT&gt; comparison won't work.&amp;nbsp; &amp;nbsp;How can we fix this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;NOTE:&amp;nbsp; tlogrow is showing correct output results from tmap, but tmssqloutput is not updating the rows.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;| tLogRow_1 |&lt;BR /&gt;|=----------------------+-----------------------+------=|&lt;BR /&gt;|LDTS |LEDTS |LEDTS_1|&lt;BR /&gt;|=----------------------+-----------------------+------=|&lt;BR /&gt;|2018-08-27 10:09:25.347|2018-08-27 10:25:17.715|null |&lt;BR /&gt;|2018-08-27 10:09:25.347|2018-08-27 10:25:17.731|null |&lt;BR /&gt;|2018-08-27 10:09:25.347|2018-08-27 10:25:17.731|null |&lt;BR /&gt;|2018-08-27 10:09:25.347|2018-08-27 10:25:17.731|null |&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 16:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-not-updating-rows-based-on-datetime-comparison/m-p/2241953#M28935</guid>
      <dc:creator>rp2018</dc:creator>
      <dc:date>2018-08-27T16:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update not updating rows based on datetime comparison?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-not-updating-rows-based-on-datetime-comparison/m-p/2241954#M28936</link>
      <description>this format is the correct (Java) one: "yyyy-MM-dd HH:mm:ss.SSS" 
&lt;BR /&gt;I dont fully understand the update process... from your writing I suggest take a look at the 3 date types in MSSQL and the one your output table is using/created... DATE, DATETIME, DATETIME2 
&lt;BR /&gt; 
&lt;BR /&gt;For what I can recall DATETIME2 is able to store more seconds precision and a wider date range. 
&lt;BR /&gt;Talend uses Datetime2 (Im not sure) 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2018 23:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-not-updating-rows-based-on-datetime-comparison/m-p/2241954#M28936</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-08-27T23:58:44Z</dc:date>
    </item>
  </channel>
</rss>

