<?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: Stored Procedure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757374#M1049755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try naming the i,e when you call it use something like&amp;nbsp; dbo.sp_test1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 16:09:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-03T16:09:50Z</dc:date>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757369#M1049750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to execute a stored procedure with a variable.&amp;nbsp; I've created the variable and loaded the script.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * ;&lt;/P&gt;&lt;P&gt;SQL EXECUTE sp_CustomerPriceList '$(vCustNo)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the load has completed successfully i cannot see any fields to choose when creating a table within my sheet based on the results of the stored procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone seen anything like this before?&amp;nbsp; Or can offer any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757369#M1049750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-03T15:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757370#M1049751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes,&lt;/P&gt;&lt;P&gt;example I have this for test a stor proc in Qlik and SqlServer (and it works)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;P&gt;&lt;EM&gt;T:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sql execute sp_test '%MED%';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sql Server&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ALTER PROCEDURE [dbo].[sp_test] &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; @p_banca varchar(10)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;BEGIN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp; SET NOCOUNT ON;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp; SELECT * from d001_banche where des_banca like @p_banca;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;END&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757370#M1049751</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-03T15:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757371#M1049752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and this also works, with a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;set var='%E%';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;T:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sql execute sp_test '$(var)';&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757371#M1049752</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-03T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757372#M1049753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if it is because i am using a temp table within the stored procedure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I try and remove that and create the table instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757372#M1049753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-03T16:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757373#M1049754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you facing any errors?&lt;/P&gt;&lt;P&gt;Please check if you have duplicate field names ....most of the time script fails due to field name duplication...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check log file for more information....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757373#M1049754</guid>
      <dc:creator />
      <dc:date>2014-11-03T16:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757374#M1049755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try naming the i,e when you call it use something like&amp;nbsp; dbo.sp_test1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757374#M1049755</guid>
      <dc:creator />
      <dc:date>2014-11-03T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757375#M1049756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting there!&amp;nbsp; I just needed to select the results of the table within the load script.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am trying to achieve i don't think is possible.&amp;nbsp; I have a variable within my sheet which is called VCustNo and the user can enter a customer number in here.&amp;nbsp; What i would like to happen is for the stored procedure to execute after a customer number is entered...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757375#M1049756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-03T16:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757376#M1049757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in QV Country this doesn't make that much sense. On average, you'll be loading &lt;EM&gt;all&lt;/EM&gt; customer information straight into your QV document, upon which the user simply points to a CustomerNo and gets results immediately. Withtout rerunning the script every time new data is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is massive, you could try DIRECT DISCOVERY to get the details interactively, once your user has decided on a customer to focus on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757376#M1049757</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-11-03T16:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757377#M1049758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just thinking aloud !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I create a button to execute the stored procedure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757377#M1049758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-03T16:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757378#M1049759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use an input box to get the customer from the user and a button to trigger a reload (with an action)&lt;/P&gt;&lt;P&gt;This works for Qlik desktop.&lt;/P&gt;&lt;P&gt;In server I think you have to use EDX or something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I strongly agree with Peter, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;this doesn't make that much sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 17:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757378#M1049759</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-03T17:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757379#M1049760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's because we have thousands of different customers with different price lists.&amp;nbsp; When you execute the stored procedure against one customer you have 83,000 rows and this is just for that one customer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way i envisage this working is the user enters a customer number which is done via a Variable/Input box and then you can press a button which will execute the stored procedure against the customer which is entered into the variable.&amp;nbsp; I've ran the stored procedure in management studio and it only takes around 10 seconds to complete so this shouldn't take too long at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this isn't possible then i shall just park this idea!..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice anyway so far though guys &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757379#M1049760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-03T18:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757380#M1049761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone offer any further help with this or is it a no goer? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 14:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757380#M1049761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-04T14:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757381#M1049762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could store the command in a batchfile and execute the batch through a macro button, i wouldnt really advise it but it is possible.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 14:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757381#M1049762</guid>
      <dc:creator />
      <dc:date>2014-11-04T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757382#M1049763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds interesting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how? Haha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 15:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757382#M1049763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-04T15:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757383#M1049764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know it's been a long time since you asked but I wanted to post here in case people searched and found this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just posted a document on this topic &lt;A href="https://community.qlik.com/docs/DOC-16567"&gt;When is a Result Set not a Result Set?&lt;/A&gt;&amp;nbsp; and the answer is Yes Qlik would have problems if you create a temporary table inside your stored procedure, but you can use SET NOCOUNT ON in SQL Server to avoid the issue so that Qlik will be able to see the right results. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 20:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/757383#M1049764</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2016-05-05T20:39:38Z</dc:date>
    </item>
  </channel>
</rss>

