<?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 Problem with loading data from SQL stored procedure. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201899#M59803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot. if i use odbc connection, it is ok. but how could i use ole db to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 02:00:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-21T02:00:48Z</dc:date>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201895#M59799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an SQL stored procedure &lt;B&gt;sp_assetslist&lt;/B&gt;&lt;/P&gt;&lt;P&gt;When I run this procedure in SQL Query Analyzer (exec &lt;B&gt;sp_assetslist&lt;/B&gt;) I get few records with columns(fields):&lt;/P&gt;&lt;P&gt;id, fk_assettypes_id, fk_users_id, rawdata&lt;/P&gt;&lt;P&gt;Now I'm trying to show these data in QlikView. I tried to use solution code which I found on the QlikTech Forum but is does not work.&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=CCE_Assets;Data Source=PLWASQL01;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=PLBHZ4V2J;Use Encryption for Data=False;Tag with column collation when possible=False;];&lt;BR /&gt;LOAD *;&lt;BR /&gt;SQL EXECUTE sp_assetslist;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I also tried with:&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD id, fk_assettypes_id, fk_users_id, rawdata;&lt;BR /&gt;SQL EXECUTE sp_assetslist;&lt;/PRE&gt;&lt;BR /&gt;but I get an error message: Field not found - &amp;lt;id&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Any idea how to manage it?&lt;BR /&gt;Thanks in advance - Brgds&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 16:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201895#M59799</guid>
      <dc:creator />
      <dc:date>2009-09-29T16:40:50Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201896#M59800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using upper case (capital) letters for the field name. Use &lt;EM&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/EM&gt; not &lt;EM&gt;&lt;STRONG&gt;id&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;My SQL queries always generate the field names in upper case unless I alias the names to a lower case or mixed case name. The database software doesn't care but QlikView is case-sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 20:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201896#M59800</guid>
      <dc:creator />
      <dc:date>2009-09-29T20:25:10Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201897#M59801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the exact same problem..... and it is not solved by making the returned variable names in Caps.&lt;/P&gt;&lt;P&gt;Basically i am trying to get a multiple rows for multiple records through a SP and feed that into a qlikview report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advise ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 19:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201897#M59801</guid>
      <dc:creator />
      <dc:date>2010-03-18T19:17:23Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201898#M59802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have also this problem!&lt;/P&gt;&lt;P&gt;I think it is a problem because we have a OLEDB connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But does somebody knows the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 10:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201898#M59802</guid>
      <dc:creator />
      <dc:date>2010-05-03T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201899#M59803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot. if i use odbc connection, it is ok. but how could i use ole db to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 02:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201899#M59803</guid>
      <dc:creator />
      <dc:date>2010-09-21T02:00:48Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201900#M59804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting this problem too, so it looks like it hasn't been solved in the past 11 months. I have a ticket open, if they come up with something I'll post back here. Reading data from a sproc is a very basic database operation, I really don't understand why it's so difficult to implement properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 22:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201900#M59804</guid>
      <dc:creator />
      <dc:date>2011-04-12T22:38:55Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201901#M59805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A little late, but for what it's worth: this is apparently a known issue, QlikView defect 37807 (they must have reset the count a few times).&amp;nbsp; Has anyone seen this behavoir in QV11, or seen previously-problematic stored procedures run OK on v11?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 14:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201901#M59805</guid>
      <dc:creator />
      <dc:date>2012-04-10T14:39:02Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201902#M59806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yeah, the fix!&amp;nbsp; This problem disappeared when I replaced my OLEDB connection string with ODBC.&amp;nbsp; Presumably QlikView will come around to mid-90s technologies soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, there seems to be a correlation in that sprocs which use temp tables have this problem, but sproc without are OK on OLEDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 15:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201902#M59806</guid>
      <dc:creator />
      <dc:date>2012-04-10T15:05:39Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201903#M59807</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Why dont you try to use the native SQL command for executing the stored procedures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD id, fk_assettypes_id, fk_users_id, rawdata;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL EXEC sp_assetslist;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have used this several times and I got no error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andrew Hudson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 04:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201903#M59807</guid>
      <dc:creator>adhudson</dc:creator>
      <dc:date>2012-04-11T04:05:56Z</dc:date>
    </item>
    <item>
      <title>Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201904#M59808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly what has not worked for me - when the stored procedure used temp tables, and I connected via OLEDB to an MS SQL 2K8 database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 14:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201904#M59808</guid>
      <dc:creator />
      <dc:date>2012-04-11T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201905#M59809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been dealing with this same issue &amp;gt; SQL Svr 2008, and using temp tables.&amp;nbsp; Works fine over ODBC, but nothing is returned over OLEDB.&amp;nbsp; I was able to get around this by adding &lt;STRONG&gt;set nocount on&lt;/STRONG&gt; to the proc, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET NOCOUNT ON&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it works like a champ!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 15:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201905#M59809</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2012-07-12T15:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201906#M59810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your post this worked for SQL Svr 2005 as well!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 17:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201906#M59810</guid>
      <dc:creator />
      <dc:date>2012-08-09T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with loading data from SQL stored procedure.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201907#M59811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Microsoft SQL Server as the database, then please perform below steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database : OLE DB -&amp;gt; Connect -&amp;gt; Select Microsoft OLEDB Provider for SQL Sever / SQL Native Client -&amp;gt; and in the Connection Tab -&amp;gt; Enter your server details, Database details and click Test Connection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the result is success then click OK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now try to execute the query by: sql exec sp_assetslist; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are any parameters to the sproc : sql exec sp_assetslist $(Param1), $(Param2), ... ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai Krishna &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 06:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loading-data-from-SQL-stored-procedure/m-p/201907#M59811</guid>
      <dc:creator />
      <dc:date>2012-12-26T06:34:49Z</dc:date>
    </item>
  </channel>
</rss>

