<?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: Setting &amp;quot;null&amp;quot; in a date field (MS SQL server) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260352#M41508</link>
    <description>Does the schema in the tMap allow this field to be null?</description>
    <pubDate>Wed, 19 Sep 2012 11:44:16 GMT</pubDate>
    <dc:creator>janhess</dc:creator>
    <dc:date>2012-09-19T11:44:16Z</dc:date>
    <item>
      <title>Setting "null" in a date field (MS SQL server)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260349#M41505</link>
      <description>Hi Buddys,
&lt;BR /&gt;I have tried to find if someone have encounter the same problem as me but I didn't.
&lt;BR /&gt;I'm trying to set a date field to null (because there is no date for some specific rows ) using a tMap -&amp;gt; tDBOutput on a MS SQL server database (using ODBC connexion).
&lt;BR /&gt;like this :
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;(MyRow.DATELOCAL == null ) ? null : (MyRow.DATELOCAL.equals("") ) ? null : MyRow.DATELOCAL&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;But I always get the same error :
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;BR /&gt;Exception in component tDBOutput_2&lt;BR /&gt;java.sql.SQLException: Optional feature not implemented&lt;BR /&gt; at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)&lt;BR /&gt; at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)&lt;BR /&gt; at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterNull(Unknown Source)&lt;BR /&gt; at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setNull(Unknown Source)&lt;BR /&gt; at lot.rapport_0_1.Rapport.tFileList_2Process(Rapport.java:8783)&lt;BR /&gt; at lot.rapport_0_1.Rapport.tFileList_1Process(Rapport.java:4917)&lt;BR /&gt; at lot.rapport_0_1.Rapport.tSetGlobalVar_1Process(Rapport.java:9839)&lt;BR /&gt; at lot.rapport_0_1.Rapport.tPrejob_1Process(Rapport.java:9743)&lt;BR /&gt; at lot.rapport_0_1.Rapport.runJobInTOS(Rapport.java:10264)&lt;BR /&gt; at lot.rapport_0_1.Rapport.main(Rapport.java:10109)&lt;BR /&gt;&lt;/FONT&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;I tried some tricks (set a default date for example ), but trick is not treat.
&lt;BR /&gt;So, I would like to find a nice way to set the "null" value in this freakin cell.
&lt;BR /&gt;Can someone help me ?
&lt;BR /&gt;Thank you.</description>
      <pubDate>Sat, 16 Nov 2024 12:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260349#M41505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting "null" in a date field (MS SQL server)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260350#M41506</link>
      <description>Hi
&lt;BR /&gt;The expression can be changed to:
&lt;BR /&gt;
&lt;PRE&gt;MyRow.DATELOCAL==null||MyRow.DATELOCAL.equals("")?null:MyRow.DATELOCAL&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2012 07:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260350#M41506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-19T07:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting "null" in a date field (MS SQL server)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260351#M41507</link>
      <description>Hi shong ! 
&lt;BR /&gt;Thank you for expressing your algorithmic' skills. 
&lt;BR /&gt;But this doesn't add pieces to the puzzle 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Is there someone around that merely tried to set a database date field to "null" with talend ?? (Oo)</description>
      <pubDate>Wed, 19 Sep 2012 09:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260351#M41507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-19T09:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting "null" in a date field (MS SQL server)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260352#M41508</link>
      <description>Does the schema in the tMap allow this field to be null?</description>
      <pubDate>Wed, 19 Sep 2012 11:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260352#M41508</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-09-19T11:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setting "null" in a date field (MS SQL server)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260353#M41509</link>
      <description>Hi janhess,
&lt;BR /&gt;Yes it does.
&lt;BR /&gt;I set up the whole things to allow "null" on either the tMap and the database.</description>
      <pubDate>Wed, 19 Sep 2012 15:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260353#M41509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-19T15:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting "null" in a date field (MS SQL server)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260354#M41510</link>
      <description>Same problem here with ODBC connected to Foxpro free tables.&lt;BR /&gt;I can't find how to set date field to null in a tMap and then i got this error in my tDbOutput:&lt;BR /&gt;Exception in component tDBOutput_6&lt;BR /&gt;java.sql.SQLException: Field DTEMES does not accept null values.</description>
      <pubDate>Tue, 07 Jan 2014 13:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-quot-null-quot-in-a-date-field-MS-SQL-server/m-p/2260354#M41510</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-01-07T13:29:17Z</dc:date>
    </item>
  </channel>
</rss>

