<?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 MySQL -&amp;gt; MsSQL &amp;quot;zero date&amp;quot; problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356812#M122254</link>
    <description>Hi All, 
&lt;BR /&gt;In TOS 2.1.0.RC1_r4264 (Java), when I try to transfer a "zero date" (0000-00-00 00:00:00) from a tMySQLInput to a tMSSQLOutput, I have the following java errors : 
&lt;BR /&gt;Exception in component tMSSqlOutput_1 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;java.sql.SQLException: Only dates between January 1, 1753 and December 31, 9999 are accepted. 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.DateTime.packDate(DateTime.java:300) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.DateTime.&amp;lt;init&amp;gt;(DateTime.java:121) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setParameter(JtdsPreparedStatement.java:361) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setTimestamp(JtdsPreparedStatement.java:757) 
&lt;BR /&gt; at projet_bi.timesheet_nt_tmp.timesheet_NT_tmp.tMysqlInput_1Process(timesheet_NT_tmp.java:360) 
&lt;BR /&gt; at projet_bi.timesheet_nt_tmp.timesheet_NT_tmp.main(timesheet_NT_tmp.java:528) 
&lt;BR /&gt;And indeed, when I enable traces, this is how the "zero date" is interpreted by TOS : Sun Nov 30 00:00:00 CET 2. 
&lt;BR /&gt;Of course, SQL Server can't add it, because it's not between the right interval... 
&lt;BR /&gt;What can I do in order to make those dates transfer correctly (I tried to write a code snippet in a tJavaRow component in order to modifiy this blank date, but I can't load java.Utils.Date !) ? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Cyril Sonnefraud</description>
    <pubDate>Sat, 16 Nov 2024 14:34:56 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T14:34:56Z</dc:date>
    <item>
      <title>MySQL -&gt; MsSQL "zero date" problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356812#M122254</link>
      <description>Hi All, 
&lt;BR /&gt;In TOS 2.1.0.RC1_r4264 (Java), when I try to transfer a "zero date" (0000-00-00 00:00:00) from a tMySQLInput to a tMSSQLOutput, I have the following java errors : 
&lt;BR /&gt;Exception in component tMSSqlOutput_1 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;java.sql.SQLException: Only dates between January 1, 1753 and December 31, 9999 are accepted. 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.DateTime.packDate(DateTime.java:300) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.DateTime.&amp;lt;init&amp;gt;(DateTime.java:121) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setParameter(JtdsPreparedStatement.java:361) 
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setTimestamp(JtdsPreparedStatement.java:757) 
&lt;BR /&gt; at projet_bi.timesheet_nt_tmp.timesheet_NT_tmp.tMysqlInput_1Process(timesheet_NT_tmp.java:360) 
&lt;BR /&gt; at projet_bi.timesheet_nt_tmp.timesheet_NT_tmp.main(timesheet_NT_tmp.java:528) 
&lt;BR /&gt;And indeed, when I enable traces, this is how the "zero date" is interpreted by TOS : Sun Nov 30 00:00:00 CET 2. 
&lt;BR /&gt;Of course, SQL Server can't add it, because it's not between the right interval... 
&lt;BR /&gt;What can I do in order to make those dates transfer correctly (I tried to write a code snippet in a tJavaRow component in order to modifiy this blank date, but I can't load java.Utils.Date !) ? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Cyril Sonnefraud</description>
      <pubDate>Sat, 16 Nov 2024 14:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356812#M122254</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL -&gt; MsSQL "zero date" problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356813#M122255</link>
      <description>Actually, "zero date" cannot be handled by java Date type (min year is year 1). Nevertheless, Date object has a timestamp attribute TOS uses to test if a Date is zero date (and when timestamp = "zero date", the Date displayed is "Sun Nov 30 00:00:00 CET 2").&lt;BR /&gt;tMySQLOuput use this trick to save zero date in database (see 1195). tMSSQLOutput should use the same trick to write correct date. Could you please open a bug in the bugtracker ?</description>
      <pubDate>Wed, 11 Jul 2007 15:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356813#M122255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-11T15:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL -&gt; MsSQL "zero date" problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356814#M122256</link>
      <description>Bug added : 
&lt;A href="http://www.talendforge.org/bugs/view.php?id=1501" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/bugs/view.php?id=1501&lt;/A&gt;
&lt;BR /&gt;Cyril Sonnefraud</description>
      <pubDate>Wed, 11 Jul 2007 15:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356814#M122256</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-07-11T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL -&gt; MsSQL "zero date" problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356815#M122257</link>
      <description>MSSQL cannot handle zero date actually (like most DBMS). You should define a behavior to handle these dates, either set them to NULL in MSSQL, or set them to min date value allowed (January 1, 1753).
&lt;BR /&gt;Look at the screens below to see how to do to set dates prior to January 1st, 1970 to NULL, with a tMap component.</description>
      <pubDate>Tue, 17 Jul 2007 10:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356815#M122257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-17T10:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL -&gt; MsSQL "zero date" problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356816#M122258</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello. I have same problem with dates from AS400.. I see no screenshoots in your post how to do this in t-map..Thx&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 09:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MySQL-gt-MsSQL-quot-zero-date-quot-problem/m-p/2356816#M122258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-13T09:59:34Z</dc:date>
    </item>
  </channel>
</rss>

