<?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 Stored Procedure with Multiple Selects! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206783#M62777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a stored procedure that will return some selects.&lt;/P&gt;&lt;P&gt;When I use this code:&lt;/P&gt;&lt;P&gt;TableName:&lt;BR /&gt;SQL&lt;BR /&gt;EXEC [sp_name];&lt;/P&gt;&lt;P&gt;It will load the first select of the procedure into the TableName table.&lt;/P&gt;&lt;P&gt;But I have another select on the procedure, how can I associate the other select to another table into qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Cassiano Sanches&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jun 2010 13:58:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-29T13:58:51Z</dc:date>
    <item>
      <title>Stored Procedure with Multiple Selects!</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206783#M62777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a stored procedure that will return some selects.&lt;/P&gt;&lt;P&gt;When I use this code:&lt;/P&gt;&lt;P&gt;TableName:&lt;BR /&gt;SQL&lt;BR /&gt;EXEC [sp_name];&lt;/P&gt;&lt;P&gt;It will load the first select of the procedure into the TableName table.&lt;/P&gt;&lt;P&gt;But I have another select on the procedure, how can I associate the other select to another table into qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Cassiano Sanches&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 13:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206783#M62777</guid>
      <dc:creator />
      <dc:date>2010-06-29T13:58:51Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure with Multiple Selects!</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206784#M62778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cassiano, did you ever got this to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 20:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206784#M62778</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2010-11-09T20:37:14Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure with Multiple Selects!</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206785#M62779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SP's can return multiple result sets, but the receiver must be able to get them. So:&lt;/P&gt;&lt;P&gt;1. Join the result sets, if their structure is identical&lt;/P&gt;&lt;P&gt;2. Create a separate SP for the second result set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 23:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206785#M62779</guid>
      <dc:creator />
      <dc:date>2010-11-09T23:49:17Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure with Multiple Selects!</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206786#M62780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cassiano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same issue this week with a project. My solution is to extend your stored procedures with a parameter and let every Select statement react to a certain value of that parameter. In your QV code you should build a table for every Select statement within your stored procedure. Next to that you have to extend the EXEC part with the parameter value it has to react to. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿﻿﻿Table1:&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;﻿﻿EXEC [dbo].[SP.Name] @parameter = 'Value1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;EXEC [dbo].[SP.Name] @parameter = 'Value2'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 09:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-with-Multiple-Selects/m-p/206786#M62780</guid>
      <dc:creator />
      <dc:date>2011-06-23T09:33:01Z</dc:date>
    </item>
  </channel>
</rss>

