<?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: String or binary data would be truncated in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374767#M137313</link>
    <description>&lt;P&gt;it really not important - for any from 6.4 - 7.01 it create binary without length not depending from schema (not only for MS SQL)&lt;BR /&gt;&lt;BR /&gt;if You on subscription version - open issue (still would be very long)&lt;/P&gt;&lt;P&gt;in other case - just not use create if not exists and create tables in advance&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 00:04:03 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2018-06-14T00:04:03Z</dc:date>
    <item>
      <title>String or binary data would be truncated</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374763#M137309</link>
      <description>&lt;P&gt;Something to keep in mind... and love to hear your thoughts on this one.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There're two types in MSSQL to store your byte[] array,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;- BINARY, fixed length&lt;/P&gt; 
&lt;P&gt;- VARBINARY, flexible with a max of 8000. (if you want bigger -&amp;gt; BLOB)&lt;/P&gt; 
&lt;P&gt;&lt;A title="MSSQL Documentation" href="https://docs.microsoft.com/en-us/sql/t-sql/data-types/binary-and-varbinary-transact-sql?view=sql-server-2017" target="_self" rel="nofollow noopener noreferrer"&gt;MSSQL Documentation&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As I want to store my generated SHA1 key in a Binary format&amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;- The bytes array size, hashSHA1.length&amp;nbsp;= 20.&lt;/P&gt; 
&lt;P&gt;-&amp;nbsp;Define column size&amp;nbsp;HUB_KEY with a length/size of 20, type BINARY.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But, when inserting the records, an error occured:&lt;/P&gt; 
&lt;PRE&gt;java.sql.BatchUpdateException: String or binary data would be truncated.&lt;/PRE&gt; 
&lt;P&gt;I took a closer look at the create table statement in the java-code, see attached picture&lt;/P&gt; 
&lt;P&gt;There's no size added to the BINARY statement. I think this is a bug...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Changed to VARBINARY and (20) is added to the CREATE statement.&lt;/P&gt; 
&lt;P&gt;Solved.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 12:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374763#M137309</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-06-10T12:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: String or binary data would be truncated</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374764#M137310</link>
      <description>&lt;P&gt;look like&amp;nbsp;a bug, what the version of Talend?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 22:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374764#M137310</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-06-13T22:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: String or binary data would be truncated</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374765#M137311</link>
      <description>&lt;P&gt;-----&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 22:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374765#M137311</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-06-13T22:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: String or binary data would be truncated</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374766#M137312</link>
      <description>&lt;P&gt;Version:&lt;/P&gt;&lt;P&gt;TOS_BD-20180116_1512-V6.5.1&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 23:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374766#M137312</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-06-13T23:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: String or binary data would be truncated</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374767#M137313</link>
      <description>&lt;P&gt;it really not important - for any from 6.4 - 7.01 it create binary without length not depending from schema (not only for MS SQL)&lt;BR /&gt;&lt;BR /&gt;if You on subscription version - open issue (still would be very long)&lt;/P&gt;&lt;P&gt;in other case - just not use create if not exists and create tables in advance&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 00:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374767#M137313</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-06-14T00:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: String or binary data would be truncated</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374768#M137314</link>
      <description>The problem was that I got an error, that I need to specify length.&lt;BR /&gt;I first had no length specified.Which resulted in this... trying to on the Binary field.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jun 2018 00:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374768#M137314</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-06-14T00:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: String or binary data would be truncated</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374769#M137315</link>
      <description>&lt;P&gt;You can create table manually with length&amp;nbsp;&lt;/P&gt;&lt;P&gt;then must work&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 01:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374769#M137315</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-06-14T01:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: String or binary data would be truncated</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374770#M137316</link>
      <description>Yes, I know (I did, but for other reasons).&lt;BR /&gt;Its just convenient of not having to maintain scripts.&lt;BR /&gt;Varbinary(20) works fine, And while reading some technical docs on performance and how search work, there's technically not much difference beside the variable length.&lt;BR /&gt;&lt;BR /&gt;Thanks for sharing your thoughts!&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jun 2018 12:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-or-binary-data-would-be-truncated/m-p/2374770#M137316</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-06-14T12:23:42Z</dc:date>
    </item>
  </channel>
</rss>

