<?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 QV is Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119168#M369069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get two columns data "DG_CODE" and "QVCT_LastUpdate", 48514 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 May 2016 12:00:51 GMT</pubDate>
    <dc:creator>lylererger</dc:creator>
    <dc:date>2016-05-21T12:00:51Z</dc:date>
    <item>
      <title>Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119164#M369065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to understand why in MS Management Studio stored procedure "Exec dbo.QlickView_GetDGlistNewSession CALL Connection(1);@SessionID = null, @dtLastUpdateFrom =null, @dtLastUpdateTill =null;" successfully returns 48514 rows, but in QlikView it doesn't, i.e. returns nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of my QlikView Extractor below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14638257437474169 jive_text_macro" jivemacro_uid="_14638257437474169" modifiedtitle="true"&gt;
&lt;P&gt;CALL ProjectFolders(1)&lt;/P&gt;
&lt;P&gt;CALL Connection(1);&lt;/P&gt;
&lt;P&gt;LET vNow = Timestamp(Timestamp#(Now(1)),'DD.MM.YYYY hh_mm');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tmpData:&lt;/P&gt;
&lt;P&gt;LOAD *;&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;Exec dbo.QlickView_GetDGlistNewSession @SessionID = null, @dtLastUpdateFrom =null, @dtLastUpdateTill =null;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IF NoOfRows('tmpData')&amp;gt;0 THEN&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACE [-----Successfully done-----];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vtmpFile = '$(vINCREMENTALData)\DGlistNewSession_$(vNow).qvd';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXECUTE cmd.exe /C del /Q $(vtmpFile);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE tmpData INTO&amp;nbsp; [$(vtmpFile)] (qvd);&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CALL DropTables('tmpData');&lt;/P&gt;
&lt;P&gt;DISCONNECT;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version of QV 11.20 SR 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I'm doing something wrong? Any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attachment result of that procedure in MS Management Studio. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 10:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119164#M369065</guid>
      <dc:creator>lylererger</dc:creator>
      <dc:date>2016-05-21T10:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119165#M369066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does your result set looks like in my SQL Server Management Studio. The name of the columns and a sample of the first few rows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 11:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119165#M369066</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-05-21T11:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119166#M369067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petter, the customers IT department says that i can use this stored procedure without any parameters.&lt;/P&gt;&lt;P&gt;Example of result in attachment.&lt;IMG __jive_id="125299" alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125299_Untitled.png" style="height: 395px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;What could be the problem is? Maybe this is another bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 11:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119166#M369067</guid>
      <dc:creator>lylererger</dc:creator>
      <dc:date>2016-05-21T11:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119167#M369068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't seem like the column names should create any problem. But from your previous screenshot it seems like the Stored Procedure returns multiple result sets. Invoking a stored procedure from the load script with the SQL statement will only retrieve the first result set and disregard the following result sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would probably want the last result set - right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 11:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119167#M369068</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-05-21T11:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119168#M369069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get two columns data "DG_CODE" and "QVCT_LastUpdate", 48514 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 12:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119168#M369069</guid>
      <dc:creator>lylererger</dc:creator>
      <dc:date>2016-05-21T12:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119169#M369070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14638343731318708 jive_text_macro" jivemacro_uid="_14638343731318708"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Did you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14638343777011562 jive_text_macro" jivemacro_uid="_14638343777011562" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;tmpData:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;LOAD *;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;SQL &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Exec dbo.QlickView_GetDGlistNewSession&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 12:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119169#M369070</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-05-21T12:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119170#M369071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you probably have to get IT to change or create a new stored procedure that delivers only an single result set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 12:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119170#M369071</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-05-21T12:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119171#M369072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anjos thanks, but I already tried all possible options, including the option proposed by you. It doesn't helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petter Thank you very much for your prompt feedback. Will do so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 12:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119171#M369072</guid>
      <dc:creator>lylererger</dc:creator>
      <dc:date>2016-05-21T12:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119172#M369073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One very important thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You procedure must have a SET NOCOUNT ON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you should include it into your QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-xml" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;tmpData:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;LOAD *;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;SQL&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;SET NOCOUNT ON &lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;Exec dbo.QlickView_GetDGlistNewSession&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 12:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119172#M369073</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-05-21T12:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure in QV is Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119173#M369074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Omg. Anjos thanks a lot. It works &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this line means ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 13:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-in-QV-is-Not-Working/m-p/1119173#M369074</guid>
      <dc:creator>lylererger</dc:creator>
      <dc:date>2016-05-21T13:06:37Z</dc:date>
    </item>
  </channel>
</rss>

