<?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: Calling stored procedure with parameter from tSetGlobalVar in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345533#M113040</link>
    <description>&lt;P&gt;You  don't set the value for each column to map the real field name on tParseRecordSet component, eg:&lt;/P&gt;&lt;P&gt;Column --&amp;gt; Value&lt;/P&gt;&lt;P&gt;OutputLine--&amp;gt;"OutputLine"&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 17:19:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-03T17:19:30Z</dc:date>
    <item>
      <title>Calling stored procedure with parameter from tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345530#M113037</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use TOS to create a random number SessionID into a variable in my tSetGlobalVar, read a log file and write the log file data to a table in a SQL Server database. This works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that I want to call a stored procedure on SQL Server with that SessionID in tSetGlobalVar as a parameter. This stored procedure will parse and transform the data in the table, and return the data in an easy-to-process form for TOS to write to separate files again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is I don't see how I can pass this SessionID variable as a parameter for calling the stored prcedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000cgoqmAAA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156776i896EE192541E220D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000cgoqmAAA.jpg" alt="0695b00000cgoqmAAA.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000cgosiAAA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149519i2BB891D34C7BC2B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000cgosiAAA.jpg" alt="0695b00000cgosiAAA.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this schema I created a SessionID field, and I think this is the way to do it, but this is of course just a schema definition. It's not tied to the real SessionID variable from tSetGlobalVar yet. How do I pass this value to the stored procedure and execute it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345530#M113037</guid>
      <dc:creator>BartG</dc:creator>
      <dc:date>2024-11-15T22:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling stored procedure with parameter from tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345531#M113038</link>
      <description>&lt;P&gt;use a tFixedFlowInput to generate an input data flow that contains the SessionID data, define one column called 'SessionID' on the schema, and set its value as: (String)globalMap.get("keyName") in the 'Use Sing Table' model table.&lt;/P&gt;&lt;P&gt;...onsubjobok--tFixedFlowInput--main--tDataParseData...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 02:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345531#M113038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-03T02:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calling stored procedure with parameter from tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345532#M113039</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the advice to add tFixedFlowInput. I added this, but now I get an error about my recordset fields that come from the stored procedure not being found: "OutputLine cannot be resolved or is not a field". But I really can't see what is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll give you some screenshots to make things clear:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ch64MAAQ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133307i6E95F60A2226B0E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ch64MAAQ.jpg" alt="0695b00000ch64MAAQ.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ch64RAAQ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134131i9513130F9B42DD72/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ch64RAAQ.jpg" alt="0695b00000ch64RAAQ.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ch64bAAA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136763iED4E7F8BDFD9D8C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ch64bAAA.jpg" alt="0695b00000ch64bAAA.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ch64gAAA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140576i1D4AB68D90796BBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ch64gAAA.jpg" alt="0695b00000ch64gAAA.jpg" /&gt;&lt;/span&gt;The error when I run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ch64lAAA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143430i548B931C8FD757C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ch64lAAA.jpg" alt="0695b00000ch64lAAA.jpg" /&gt;&lt;/span&gt;This is what the stored procedure returns when I execute it in SSMS:&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ch64qAAA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150015i8CB03094553A1A7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ch64qAAA.jpg" alt="0695b00000ch64qAAA.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 11:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345532#M113039</guid>
      <dc:creator>BartG</dc:creator>
      <dc:date>2023-02-03T11:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calling stored procedure with parameter from tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345533#M113040</link>
      <description>&lt;P&gt;You  don't set the value for each column to map the real field name on tParseRecordSet component, eg:&lt;/P&gt;&lt;P&gt;Column --&amp;gt; Value&lt;/P&gt;&lt;P&gt;OutputLine--&amp;gt;"OutputLine"&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 17:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345533#M113040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-03T17:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calling stored procedure with parameter from tSetGlobalVar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345534#M113041</link>
      <description>&lt;P&gt;Thank you! That was less intuitive...I missed that one from the sentence "In the&amp;nbsp;&lt;B&gt;Attribute table&lt;/B&gt;&amp;nbsp;area, fill in each&amp;nbsp;&lt;B&gt;Value&lt;/B&gt;&amp;nbsp;column with the corresponding column name in the MS SQL Server table that holds the personal information." in &lt;A href="https://help.talend.com/r/en-US/7.3/mssql/tmssqlsp-tlogrow-tparserecordset-tfixedflowinput-configuring-tparserecordset-component-standard-component" alt="https://help.talend.com/r/en-US/7.3/mssql/tmssqlsp-tlogrow-tparserecordset-tfixedflowinput-configuring-tparserecordset-component-standard-component" target="_blank"&gt;the docs&lt;/A&gt;. It works now, thanks for your support!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 12:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-stored-procedure-with-parameter-from-tSetGlobalVar/m-p/2345534#M113041</guid>
      <dc:creator>BartG</dc:creator>
      <dc:date>2023-02-07T12:25:19Z</dc:date>
    </item>
  </channel>
</rss>

