<?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: [resolved] tMSSqlOutputBulkExec: Mapping datatype boolean to bit does not work in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlOutputBulkExec-Mapping-datatype-boolean-to-bit/m-p/2295173#M67984</link>
    <description>Hello Shong,
&lt;BR /&gt;thank you very much for this information!
&lt;BR /&gt;I wish all the best for 2010.
&lt;BR /&gt;Regards Hartmut</description>
    <pubDate>Mon, 04 Jan 2010 08:40:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-04T08:40:37Z</dc:date>
    <item>
      <title>[resolved] tMSSqlOutputBulkExec: Mapping datatype boolean to bit does not work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlOutputBulkExec-Mapping-datatype-boolean-to-bit/m-p/2295171#M67982</link>
      <description>Hello,&lt;BR /&gt;i have a java TOS project.&lt;BR /&gt;When reading the schema information from the MS-SQL-Server database the type bit is mapped to the java type boolean. That's o.k.&lt;BR /&gt;But when using the tMSSqlOutputBulkExec component to write data to the MS-SQL-Server &lt;BR /&gt;  - the file generated contains 'true' or 'false' (without the ') in the boolean columns&lt;BR /&gt;  - and an error "not able to convert" is raised&lt;BR /&gt;    &lt;BR /&gt;So it seems that the values 'true' / 'false' are not mapped to 1 / 0 in the database.&lt;BR /&gt;If this implicit mapping is not possible then i would prefer that the mapping when reading the schema information should be "bit =&amp;gt; int" and not "bit =&amp;gt; boolean".&lt;BR /&gt;Regards Hartmut</description>
      <pubDate>Sat, 16 Nov 2024 13:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlOutputBulkExec-Mapping-datatype-boolean-to-bit/m-p/2295171#M67982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMSSqlOutputBulkExec: Mapping datatype boolean to bit does not work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlOutputBulkExec-Mapping-datatype-boolean-to-bit/m-p/2295172#M67983</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;If this implicit mapping is not possible then i would prefer that the mapping when reading the schema information should be "bit =&amp;gt; int" and not "bit =&amp;gt; boolean".&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You can change data type mapping, go to Windows--&amp;gt;Preferences---&amp;gt;Talend--&amp;gt;Specific Settings--&amp;gt;metadata of TalendType, open mapping_MSSQL.xml and modify it: 
&lt;BR /&gt; 
&lt;B&gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;language name="java"&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;dbToTalendTypes&amp;gt;&amp;lt;!-- Adviced mappings --&amp;gt;&lt;BR /&gt;...&lt;BR /&gt; &amp;lt;dbType type="BIT"&amp;gt;&lt;BR /&gt; &amp;lt;talendType type="id_Boolean" default="true" /&amp;gt;&lt;BR /&gt; &amp;lt;talendType type="id_Byte" /&amp;gt;&lt;BR /&gt; &amp;lt;/dbType&amp;gt;&lt;BR /&gt;&lt;/B&gt; 
&lt;BR /&gt;Change to : 
&lt;BR /&gt; 
&lt;B&gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;language name="java"&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;dbToTalendTypes&amp;gt;&amp;lt;!-- Adviced mappings --&amp;gt;&lt;BR /&gt;...&lt;BR /&gt; &amp;lt;dbType type="BIT"&amp;gt;&lt;BR /&gt; &amp;lt;talendType type="id_Integer" default="true" /&amp;gt; //add this line and set it as true by default&lt;BR /&gt; &amp;lt;talendType type="id_Boolean" /&amp;gt;&lt;BR /&gt; &amp;lt;talendType type="id_Byte" /&amp;gt;&lt;BR /&gt; &amp;lt;/dbType&amp;gt;&lt;BR /&gt;&lt;/B&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 24 Dec 2009 03:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlOutputBulkExec-Mapping-datatype-boolean-to-bit/m-p/2295172#M67983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-24T03:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMSSqlOutputBulkExec: Mapping datatype boolean to bit does not work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlOutputBulkExec-Mapping-datatype-boolean-to-bit/m-p/2295173#M67984</link>
      <description>Hello Shong,
&lt;BR /&gt;thank you very much for this information!
&lt;BR /&gt;I wish all the best for 2010.
&lt;BR /&gt;Regards Hartmut</description>
      <pubDate>Mon, 04 Jan 2010 08:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMSSqlOutputBulkExec-Mapping-datatype-boolean-to-bit/m-p/2295173#M67984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-04T08:40:37Z</dc:date>
    </item>
  </channel>
</rss>

