<?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: tMSSqlSP Ouput Truncates String in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263801#M43845</link>
    <description>Hi Sabrina,&lt;BR /&gt;Thanks for testing!&lt;BR /&gt;My case is for Microsoft SQL Server, not Oracle.&lt;BR /&gt;For MSSQL:&lt;BR /&gt;  * varchar supports up to 8,000 characters.&lt;BR /&gt;  * varchar(MAX) supports up to 2 GB (2,147,483,647 characters).&lt;BR /&gt;In my example:&lt;BR /&gt;  * passing data from Talend to MSSQL works fine with varchar of 4,004 character.  No truncation.&lt;BR /&gt;  * passing data from MSSQL to Talend does not work.  It truncates varchar of 4,004 characters down to 4,000 with no error msg.&lt;BR /&gt;This only happens for tMSSqlSP component.&lt;BR /&gt;This does not happen for tMSSqlInput or tMSSqlOutput components.  These two components work just fine with varchar of 4,004 characters with no truncations.&lt;BR /&gt;But I need to call stored procedures so I have to use tMSSqlSP.&lt;BR /&gt;Could you please test Microsoft SQL Server?  I believe you can download and use the trial version from Microsoft for 180 days:  &lt;A href="http://technet.microsoft.com/en-US/evalcenter/hh225126?WT.srch=1&amp;amp;WT.mc_id=SEM_GOOGLE_USEvergreenSearch_SQLServer2012&amp;amp;CR_CC=200072479" rel="nofollow noopener noreferrer"&gt;http://technet.microsoft.com/en-US/evalcenter/hh225126?WT.srch=1&amp;amp;WT.mc_id=SEM_GOOGLE_USEvergreenSearch_SQLServer2012&amp;amp;CR_CC=200072479&lt;/A&gt;</description>
    <pubDate>Wed, 30 Oct 2013 11:45:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-30T11:45:13Z</dc:date>
    <item>
      <title>tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263794#M43838</link>
      <description>When using tMSSqlSP component to call SQL Server stored procedure, input from Talend string to a SQL varchar(MAX) works fine.  But output from SQL varchar(MAX) to Talend string gets truncated to 4,000 characters.  How do I work around this?  Is this a bug?</description>
      <pubDate>Sat, 16 Nov 2024 11:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263794#M43838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263795#M43839</link>
      <description>Hi, 
&lt;BR /&gt;Could you please check the KB article about 
&lt;A href="https://community.qlik.com/s/article/ka03p0000006EqeAAE" target="_blank"&gt;Exception Data truncation Data too long for column&lt;/A&gt; to see if it is useful for your case?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 24 Oct 2013 03:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263795#M43839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-24T03:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263796#M43840</link>
      <description>Sabrina, 
&lt;BR /&gt;Unfortunately, the link you provided above did not help me. I am not getting any errors. Talend simply truncates my string down to 4,000 characters. 
&lt;BR /&gt;Attached is the simplest example I can provide that you can try for yourself. 
&lt;BR /&gt;String in tFixedFlowInput1 is 4,004 characters long. 
&lt;BR /&gt;On the last screen, tLogRow1 displays both Input and Output, and 4 characters have been truncated on the Output down to 4,000 characters. 
&lt;BR /&gt;Below is the MS SQL Stored Procedure. 
&lt;BR /&gt;If I run below stored procedure outside of Talend, I get the full Output of 4,004 characters. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;USE 
&lt;BR /&gt;GO 
&lt;BR /&gt;SET ANSI_NULLS ON 
&lt;BR /&gt;GO 
&lt;BR /&gt;SET QUOTED_IDENTIFIER ON 
&lt;BR /&gt;GO 
&lt;BR /&gt;CREATE PROCEDURE . 
&lt;BR /&gt; @Input varchar(Max), 
&lt;BR /&gt; @Output varchar(Max) OUT 
&lt;BR /&gt;AS 
&lt;BR /&gt;BEGIN 
&lt;BR /&gt; SET @Output = @Input 
&lt;BR /&gt;END 
&lt;BR /&gt;GO 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBYQ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139208iC551C5477783C4F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBYQ.jpg" alt="0683p000009MBYQ.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBYV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145494iC0158187A61FAD9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBYV.jpg" alt="0683p000009MBYV.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBYa.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155797i8F0E08D2DE348374/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBYa.jpg" alt="0683p000009MBYa.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263796#M43840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-24T13:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263797#M43841</link>
      <description>Hi, 
&lt;BR /&gt;Which talend build version are you using? I will take a testing for it to see if it repro again.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 25 Oct 2013 04:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263797#M43841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-25T04:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263798#M43842</link>
      <description>TOS 5.3.1.r104014&lt;BR /&gt;Thanks Sabrina!</description>
      <pubDate>Fri, 25 Oct 2013 12:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263798#M43842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-25T12:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263799#M43843</link>
      <description>Hi Sabrina,&lt;BR /&gt;Did you get a chance to test this?  Thanks for your help&lt;BR /&gt;Chung</description>
      <pubDate>Tue, 29 Oct 2013 11:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263799#M43843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-29T11:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263800#M43844</link>
      <description>Hi, &lt;BR /&gt;Sorry for delay.&lt;BR /&gt;I have made a testing on Mysql, everything is OK. I suspect something is limited by oracle varchar size (1, 4000). Is it Ok with you when you use blob data type instead of varchar for your 4,004 characters?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 30 Oct 2013 03:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263800#M43844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-30T03:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263801#M43845</link>
      <description>Hi Sabrina,&lt;BR /&gt;Thanks for testing!&lt;BR /&gt;My case is for Microsoft SQL Server, not Oracle.&lt;BR /&gt;For MSSQL:&lt;BR /&gt;  * varchar supports up to 8,000 characters.&lt;BR /&gt;  * varchar(MAX) supports up to 2 GB (2,147,483,647 characters).&lt;BR /&gt;In my example:&lt;BR /&gt;  * passing data from Talend to MSSQL works fine with varchar of 4,004 character.  No truncation.&lt;BR /&gt;  * passing data from MSSQL to Talend does not work.  It truncates varchar of 4,004 characters down to 4,000 with no error msg.&lt;BR /&gt;This only happens for tMSSqlSP component.&lt;BR /&gt;This does not happen for tMSSqlInput or tMSSqlOutput components.  These two components work just fine with varchar of 4,004 characters with no truncations.&lt;BR /&gt;But I need to call stored procedures so I have to use tMSSqlSP.&lt;BR /&gt;Could you please test Microsoft SQL Server?  I believe you can download and use the trial version from Microsoft for 180 days:  &lt;A href="http://technet.microsoft.com/en-US/evalcenter/hh225126?WT.srch=1&amp;amp;WT.mc_id=SEM_GOOGLE_USEvergreenSearch_SQLServer2012&amp;amp;CR_CC=200072479" rel="nofollow noopener noreferrer"&gt;http://technet.microsoft.com/en-US/evalcenter/hh225126?WT.srch=1&amp;amp;WT.mc_id=SEM_GOOGLE_USEvergreenSearch_SQLServer2012&amp;amp;CR_CC=200072479&lt;/A&gt;</description>
      <pubDate>Wed, 30 Oct 2013 11:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263801#M43845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-30T11:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263802#M43846</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;For MSSQL:&lt;BR /&gt; * varchar supports up to 8,000 characters.&lt;BR /&gt; * varchar(MAX) supports up to 2 GB (2,147,483,647 characters).&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;What's your encoding? If encode is different, spaces for each character are also different. You can only save 4,000 if it is a two-digit.
&lt;BR /&gt;Please see this article 
&lt;A href="http://stackoverflow.com/questions/14030498/how-does-sql-server-store-more-than-4000-characters-in-nvarcharmax" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/14030498/how-does-sql-server-store-more-than-4000-characters-in-nvarcharmax&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 31 Oct 2013 03:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263802#M43846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-31T03:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263803#M43847</link>
      <description>Hi Sabrina,
&lt;BR /&gt;I am using 8-bit encoding. But it really doesn't matter since both varchar(MAX) and nvarchar(MAX) support gigabytes of data. Below are the results I am seeing using exactly the same encoding:
&lt;BR /&gt; Using tMSSqlInput with varchar(MAX), no issues passing 4,004 characters
&lt;BR /&gt; Using tMSSqlOutput with varchar(MAX), no issues passing 4,004 characters
&lt;BR /&gt; Using tMSSqlSP (IN) with varchar(MAX), no issues passing 4,004 characters
&lt;BR /&gt;--&amp;gt; Using tMSSqlSP (OUT) with varchar(MAX), 4,004 characters is truncated to 4,000 characters
&lt;BR /&gt;I can use .NET application and call the same stored procedure and get all 4,004 character out. So, I really don't think the issue is with my stored procedure or Microsoft SQL Server. This only happens when I use Talend.
&lt;BR /&gt;Were you able to install the free Microsoft SQL Server from the link I sent to confirm this? Thanks for your continued support!</description>
      <pubDate>Thu, 31 Oct 2013 11:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263803#M43847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-31T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263804#M43848</link>
      <description>Hi, &lt;BR /&gt;Thanks your response. &lt;BR /&gt;I will make a testing on MSSQL server to see if this issue repro and come back to you asap.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 01 Nov 2013 02:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263804#M43848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-01T02:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263805#M43849</link>
      <description>Hi Sabrina, did you get a chance to test this?</description>
      <pubDate>Wed, 06 Nov 2013 14:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263805#M43849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-06T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263806#M43850</link>
      <description>Hi, 
&lt;BR /&gt;Sorry for delay.
&lt;BR /&gt;I have made a testing on Microsoft SQL Server.
&lt;BR /&gt;I suspect it is a bug. 
&lt;BR /&gt;Could you please open a jira issue of DI project on 
&lt;A href="https://jira.talendforge.org/secure/Dashboard.jspa" target="_blank" rel="nofollow noopener noreferrer"&gt;Talend Bug tracker&lt;/A&gt;. Our component developer will check it.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 07 Nov 2013 06:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263806#M43850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T06:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263807#M43851</link>
      <description>Thanks Sabrina. I've opened an issue: 
&lt;A href="https://jira.talendforge.org/browse/TESB-11968#" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-11968#&lt;/A&gt;</description>
      <pubDate>Thu, 07 Nov 2013 14:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263807#M43851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T14:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlSP Ouput Truncates String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263808#M43852</link>
      <description>Hi,&lt;BR /&gt;Thanks your contribution to talend.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 08 Nov 2013 03:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlSP-Ouput-Truncates-String/m-p/2263808#M43852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-08T03:39:36Z</dc:date>
    </item>
  </channel>
</rss>

