<?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 how to read rows returned from function with tdbsp component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-read-rows-returned-from-function-with-tdbsp-component/m-p/2278520#M53975</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use a function in tdbsp component and want to use the result returned by function in tdbrow component(update statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tdbsp(function)-----&amp;gt;tdbrow(update)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting null value as a function result and hence update is not working as expected but am able to print the result returned by function in tlogrow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest how can i do this.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:29:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T04:29:30Z</dc:date>
    <item>
      <title>how to read rows returned from function with tdbsp component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-read-rows-returned-from-function-with-tdbsp-component/m-p/2278520#M53975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use a function in tdbsp component and want to use the result returned by function in tdbrow component(update statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tdbsp(function)-----&amp;gt;tdbrow(update)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting null value as a function result and hence update is not working as expected but am able to print the result returned by function in tlogrow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest how can i do this.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-read-rows-returned-from-function-with-tdbsp-component/m-p/2278520#M53975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to read rows returned from function with tdbsp component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-read-rows-returned-from-function-with-tdbsp-component/m-p/2278521#M53976</link>
      <description>&lt;P&gt;tDBSP do not create a dataflow, you can use tParseRecordSet to extract data -&amp;nbsp;&lt;A href="https://help.talend.com/reader/WQvDLxgl6A~aKwyHRPy4mQ/8v7UKcrJqPWj_qBKWYqyxg" target="_self" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/WQvDLxgl6A~aKwyHRPy4mQ/8v7UKcrJqPWj_qBKWYqyxg&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but often the more simple way - just to use tDBInput instead of tDBSP if you need proceed returned data&lt;/P&gt;
&lt;P&gt;the source of tDBInput could be any query (not only SELECT col1 FROM tableX), such as:&lt;/P&gt;
&lt;P&gt;- exec udp_MyStoredProcedure X Y Z (call udp_MyStoredProcedure)&lt;/P&gt;
&lt;P&gt;- SELECT my_func(X,Y)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;related to your parallel question - you can use a prepared query with variables stored by tFlowToIterate to prepare proper call:&lt;/P&gt;
&lt;PRE&gt;"EXEC udp_MyProcedure "+(String)globalMap.get("row1.col1") + " " + (Long)globalMap.get("row1.col2")&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 22:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-read-rows-returned-from-function-with-tdbsp-component/m-p/2278521#M53976</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-10-03T22:31:49Z</dc:date>
    </item>
  </channel>
</rss>

