<?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: How to capture output of SQL Stored Procedure in variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320263#M90424</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I am using SQL Server 2008 R2, also it returning result of counts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 12:50:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-16T12:50:24Z</dc:date>
    <item>
      <title>How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320257#M90418</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to call SQL Sp from talend and capture its result set in a variable and this variable will be used further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how to do the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am newbie to the Talend, please help me on the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 10:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320257#M90418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-10T10:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320258#M90419</link>
      <description>&lt;P&gt;This should help....&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/Y4ldtMoTiuC0d9L2HNRqzw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/Y4ldtMoTiuC0d9L2HNRqzw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 11:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320258#M90419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-10T11:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320259#M90420</link>
      <description>&lt;P&gt;Hi rhall&lt;SPAN class=""&gt;, Thanks for the reply.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I already gone through the detail which you have shared with me however still i am not able to achieve the feet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Could you please share detail with example, step by step would be fruit on tree.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Thanks in advance for your support and help!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Amit Srivastava&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 12:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320259#M90420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-10T12:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320260#M90421</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can use a tParseRecordSet behind a tMySqlSP.&lt;/P&gt;
&lt;P&gt;Could you please refer to this scenario about:&lt;A title="TalendHelpCenter: Scenario: Retrieving personal information using a stored procedure" href="https://help.talend.com/reader/V2ZZaxdS78HmPacuPcEwkw/_l7WigLwFFyngax3SVApNA" target="_self" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter: Scenario: Retrieving personal information using a stored procedure&lt;/A&gt; to see if it is what you are looking for?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 09:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320260#M90421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-11T09:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320261#M90422</link>
      <description>&lt;P&gt;Hi xdshi,&lt;/P&gt; 
&lt;P&gt;Thanks for the post.&lt;/P&gt; 
&lt;P&gt;As i am newbie, i do not have that understanding, let me show you my requirement again, a bit in more detail&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;- I have Stored Procedure that return result, defination of SP is&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Create PROCEDURE&amp;nbsp;dbo.GetCount&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AS &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;BEGIN &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SET NOCOUNT ON &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;DECLARE @NewSeqValue INT &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SET&amp;nbsp;@NewSeqValue = SELECT Count(*) from dbo.DataLoad(Nolock)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SELECT @NewSeqValue AS&amp;nbsp;Count&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now, i want to execute this SP via Talend and want to capture result in another variable in talend, so that i can use in further in Talend flow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please suggest, step by step great would be great!!&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Amit Srivastava&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 06:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320261#M90422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-16T06:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320262#M90423</link>
      <description>&lt;P&gt;Which database is your procedure running on? Also, it doesn't look like it is set to return an output parameter.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 09:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320262#M90423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-16T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320263#M90424</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I am using SQL Server 2008 R2, also it returning result of counts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 12:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320263#M90424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-16T12:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320264#M90425</link>
      <description>&lt;P&gt;Your procedure will need an output parameter.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 14:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320264#M90425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-16T14:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture output of SQL Stored Procedure in variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320265#M90426</link>
      <description>&lt;P&gt;Hi Rhall,&lt;/P&gt; 
&lt;P&gt;I have included OutPut parameter in my sp as below&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Stored Procedure&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;Create PROCEDURE dbo.GetCount&lt;BR /&gt;@OutPut INT OUTPUT&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;SET NOCOUNT ON&lt;/P&gt; 
&lt;P&gt;DECLARE @SeqValue INT&lt;BR /&gt;SET @SeqValue = (SELECT Count(*) from dbo.test(Nolock))&lt;BR /&gt;SELECT @SeqValue AS Count&lt;/P&gt; 
&lt;P&gt;END&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-- &lt;STRONG&gt;On executing SP manually, its giving output as 9&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;1. OverAllFlow&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OverAllFlow.JPG" style="width: 433px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxVi.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146813iE51A6FA0AB3A501A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxVi.jpg" alt="0683p000009LxVi.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;1.1. tMSSQLSP&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;- Opted Output as a Output variable as shown below&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMSSQLSP.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lxhi.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143526iE3C1512ED3F9065E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lxhi.jpg" alt="0683p000009Lxhi.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;1.2&amp;nbsp; tLogRow1&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LogOutPut.JPG" style="width: 512px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lxfd.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138518i6056A4A2F4DEA8CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lxfd.jpg" alt="0683p000009Lxfd.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt; - When I am executing this SP via Talend and trying to capture value in &lt;STRONG&gt;Output&lt;/STRONG&gt; variable (Snapshot above), then it showing value as &lt;STRONG&gt;0&lt;/STRONG&gt; in tLogRow, expected result to be &lt;STRONG&gt;9&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please suggest, what i am doing wrong in this implementation.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also, i have tested to include insert statement in above SP and executed the SP via Talend, record inserted in respected table but output&amp;nbsp;not captured in &lt;STRONG&gt;OutPut&lt;/STRONG&gt; variable &lt;STRONG&gt;which means SP is calling properly via talend only issue is with OutPut caprturing.&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please suggest!!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Amit Srivastava&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 06:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-capture-output-of-SQL-Stored-Procedure-in-variable/m-p/2320265#M90426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T06:57:33Z</dc:date>
    </item>
  </channel>
</rss>

