<?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: SQL Server stored procedure returns no rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414532#M154229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;Thanks for your post.&amp;nbsp; Adding that qualification to my load script corrected my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 02:24:02 GMT</pubDate>
    <dc:creator>phcaptjim</dc:creator>
    <dc:date>2015-04-09T02:24:02Z</dc:date>
    <item>
      <title>SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414524#M154221</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 on a SQL Server 2008 instance which does not return any rows in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The stored procedure works as expected and returns rows when executed within SQL Server Management Studio (SSMS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The stored procedure has SET NOCOUNT ON specified at the very beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format of the connection string used is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OLEDB CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DATABASE_NAME;Data Source=SERVER_NAME.DOMAIN.COM,1433;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method of calling the stored procedure is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLOUD_DATABASE_USAGE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXEC dbo.udsp_Stored_Procedure '$(vParam)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried adding (mode is write); at the end of the connection string along with enabling the option 'Open Databases in Read and Write mode'. Still no joy.&amp;nbsp; Interestingly, I can execute different stored procedures against an instance of SQL Server 2005 and get rows returned, so my current line of thinking is that it is something to do with the version of SQL Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to do to get the stored procedure to execute and return rows?&amp;nbsp; I have been struggling to find a resolution for a couple of days now so any guidance or support will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 11:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414524#M154221</guid>
      <dc:creator>mo_bhatti</dc:creator>
      <dc:date>2012-10-15T11:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414525#M154222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look on this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/261520#261520"&gt;http://community.qlik.com/message/261520#261520&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 17:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414525#M154222</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-10-15T17:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414526#M154223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured out the issue. The stored procedure that was being invoked belonged to a schema other than &lt;STRONG&gt;dbo&lt;/STRONG&gt;.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad that its&amp;nbsp; resolved but I am a bit disappointed that QlikView does not raise a meaningful error message. Something along the lines of 'stored procedure does not exist/object not found' would have been a great clue, rather than simply proceeding as if the stored procedure had been invoked successfully but not returning any rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a sidenote is this something that has been addressed in a recent service release/service pack?&amp;nbsp; If not, how do I go about raising a request for this enhancement to be added.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 18:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414526#M154223</guid>
      <dc:creator>mo_bhatti</dc:creator>
      <dc:date>2012-10-15T18:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414527#M154224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I believe you can contact QlikTech support or your QlikTech parter, but I'm not sure it will be considered a bug.&lt;/P&gt;&lt;P&gt;If this cannot be considered a bug, you can request an enhancement as an idea here: &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/ideas"&gt;http://community.qlik.com/ideas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 19:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414527#M154224</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-10-15T19:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414528#M154225</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;&lt;/P&gt;&lt;P&gt;Have you tried setting ErrorMode to zero and viewing the error details after the OLEDB command, something like ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set ErrorMode = 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OLEDEB CONNECT TO {connection string};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLOUD_DATABASE_USAGE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXEC dbo.udsp_Stored_Procedure '$(vParam)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET y = Num(ScriptError) &amp;amp; ': ' &amp;amp; ScriptError &amp;amp; chr(10) &amp;amp; ScriptErrorDetails;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set errormode = 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 08:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414528#M154225</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-10-16T08:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414529#M154226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;heloo an u help me this: &lt;/P&gt;&lt;P&gt;created connection loaded table from SQL but need to revert back the status to DB after some changes,&lt;/P&gt;&lt;P&gt;How can i do this???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO SQL (XUserId is GAXEKXFMWLYAHYVOTLZEXEB, XPassword is LGGXNXFMWLYAHYVOTLZEXBC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL &lt;/P&gt;&lt;P&gt;EXEC ReconDB.dbo.tblBookingComponentDetail ??????????&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;//A:&lt;/P&gt;&lt;P&gt;//SQL SELECT &lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; "Booking ID",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; "Component Type",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; "Cost Price ",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; "Selling Price ",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; status&lt;/P&gt;&lt;P&gt;//FROM ReconDB.dbo.tblBookingComponentDetail;&lt;/P&gt;&lt;P&gt;//STORE * from A into recon.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD [Booking ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Component Type], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost Price ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Cost Price ]&amp;gt;30000 and [Cost Price ]&amp;lt;40000,'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if([Cost Price ]&amp;gt;40000 and [Cost Price ] &amp;lt; 50000,'B','C')) as status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Selling Price ] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;recon.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 11:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414529#M154226</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-11-02T11:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414530#M154227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wirting back to SQL can be achieved using macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/201408#201408" title="http://community.qlik.com/message/201408#201408"&gt;http://community.qlik.com/message/201408#201408&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 11:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414530#M154227</guid>
      <dc:creator />
      <dc:date>2012-11-02T11:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414531#M154228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've hit this is as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just worked out how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My stored proc has temp tables, so I had to include the following at the very start of the SQL stored proc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;SET NOCOUNT ON&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That fixed it for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 04:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414531#M154228</guid>
      <dc:creator />
      <dc:date>2014-05-29T04:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414532#M154229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;Thanks for your post.&amp;nbsp; Adding that qualification to my load script corrected my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 02:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/414532#M154229</guid>
      <dc:creator>phcaptjim</dc:creator>
      <dc:date>2015-04-09T02:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server stored procedure returns no rows</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/1694221#M450825</link>
      <description>&lt;P&gt;That worked foe me!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 18:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-stored-procedure-returns-no-rows/m-p/1694221#M450825</guid>
      <dc:creator>gdelaossat1</dc:creator>
      <dc:date>2020-04-16T18:56:42Z</dc:date>
    </item>
  </channel>
</rss>

