<?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: SQL Server DATETIME2 truncating to DATETIME in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228439#M19713</link>
    <description>&lt;P&gt;Thanks. &amp;nbsp;I'll write a SQL Server procedure to properly push the data, since I need to retain all 6 of the incoming decimal digits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Sheila&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2017 13:55:50 GMT</pubDate>
    <dc:creator>TwoStepSRP</dc:creator>
    <dc:date>2017-04-25T13:55:50Z</dc:date>
    <item>
      <title>SQL Server DATETIME2 truncating to DATETIME</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228437#M19711</link>
      <description>&lt;P&gt;I have SQL Server input and output components with a tmap in between to manipulate a few columns. &amp;nbsp;I have a DATETIME2 column that translates exactly from input to output, however the data in the resulting table is in DATETIME format rather than DATETIME2 - i.e. it lost the last 3 decimal digits, retaining only 3 (from 0.111111 to 0.111). &amp;nbsp;The Schema of both SQL Server components shows the columns as DATETIME2 and I specified a formal of "yyyy-MM-dd HH:mm:ss.SSSSSS", though the patterns seem to indicate it only supports 3 SSS values. &amp;nbsp;I'm not sure if the last digits are gettting lost when it is pulled from SQL Server of in the tmap itself. &amp;nbsp;Is this expected behaviour?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I change the input component - which is a select from a view - to have the field be a varchar containing a string in the format of&lt;SPAN&gt; "yyyy-MM-dd HH:mm:ss.SSSSSS", is there a format or function that can be applied in tmap to change it back to DATETIME2 and thus write it correctly to SQL Server?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Sheila&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 21:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228437#M19711</guid>
      <dc:creator>TwoStepSRP</dc:creator>
      <dc:date>2017-04-24T21:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server DATETIME2 truncating to DATETIME</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228438#M19712</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Java don't support for six but only for the millisecond sss.&lt;BR /&gt;If you want to show six, write .SSSSSS and the other part will be Auto completed with&amp;nbsp; "000".&lt;/P&gt; 
&lt;P&gt;Please take a look at this article:&lt;A title="https://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html" href="https://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html" target="_self" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 03:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228438#M19712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T03:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server DATETIME2 truncating to DATETIME</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228439#M19713</link>
      <description>&lt;P&gt;Thanks. &amp;nbsp;I'll write a SQL Server procedure to properly push the data, since I need to retain all 6 of the incoming decimal digits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Sheila&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228439#M19713</guid>
      <dc:creator>TwoStepSRP</dc:creator>
      <dc:date>2017-04-25T13:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server DATETIME2 truncating to DATETIME</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228440#M19714</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Feel free to let us know if there is any further help we can give.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 08:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-DATETIME2-truncating-to-DATETIME/m-p/2228440#M19714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-26T08:21:31Z</dc:date>
    </item>
  </channel>
</rss>

