<?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 Another SQL Stored Procedure Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Another-SQL-Stored-Procedure-Question/m-p/231802#M83494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try using an ODBC instead a connection string. Something like:&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ODBC&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;CONNECT&lt;/B&gt; &lt;B&gt;TO&lt;/B&gt; ODBC01 (XUserId is LcZMDD, XPassword is aHQSPRMFBMaGCA); &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Ids:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;ac_id; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;EXEC&lt;/B&gt; BD01.dbo.pTest; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 15:04:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-06T15:04:17Z</dc:date>
    <item>
      <title>Another SQL Stored Procedure Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-SQL-Stored-Procedure-Question/m-p/231801#M83493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm just testing at the moment but want to get the recordset loaded into Qlikview as returned from a stored procedure.&lt;/P&gt;&lt;P&gt;ALTER PROCEDURE dbo.pTest&lt;BR /&gt;AS&lt;BR /&gt;SELECT&lt;BR /&gt; ac_id&lt;BR /&gt;FROM&lt;BR /&gt; dbo.fcAccount&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Running "EXEC dbo. pTest" in MS SQL server it returns a recordset as expected.&lt;/P&gt;&lt;P&gt;In the Load script in Qlikview I have&lt;/P&gt;&lt;P&gt;CONNECT TO [Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=FC;Data Source=(local);Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=CHUCK-PC2;Use Encryption for Data=False;Tag with column collation when possible=False;MARS Connection=False;DataTypeCompatibility=0;Trust Server Certificate=False];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SQL EXECUTE dbo.pTest;&lt;/P&gt;&lt;P&gt;I don't get any errors so it appears to work ok but qlikview doesn't load any columns/rows.&lt;/P&gt;&lt;P&gt;Looks like I need to specifiy that it's returning a recordset some how. How do I do it.&lt;/P&gt;&lt;P&gt;I also tried&lt;/P&gt;&lt;P&gt;LOAD ac_id;&lt;/P&gt;&lt;P&gt;SQL EXECUTE dbo.pTest;&lt;/P&gt;&lt;P&gt;It didn't like it&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 04:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-SQL-Stored-Procedure-Question/m-p/231801#M83493</guid>
      <dc:creator />
      <dc:date>2010-05-05T04:45:28Z</dc:date>
    </item>
    <item>
      <title>Another SQL Stored Procedure Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-SQL-Stored-Procedure-Question/m-p/231802#M83494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try using an ODBC instead a connection string. Something like:&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ODBC&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;CONNECT&lt;/B&gt; &lt;B&gt;TO&lt;/B&gt; ODBC01 (XUserId is LcZMDD, XPassword is aHQSPRMFBMaGCA); &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Ids:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;ac_id; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;EXEC&lt;/B&gt; BD01.dbo.pTest; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 15:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-SQL-Stored-Procedure-Question/m-p/231802#M83494</guid>
      <dc:creator />
      <dc:date>2010-05-06T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Another SQL Stored Procedure Question</title>
      <link>https://community.qlik.com/t5/QlikView/Another-SQL-Stored-Procedure-Question/m-p/231803#M83495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you, Steve!&amp;nbsp; Switching to ODBC worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to use a user DSN - my File DSNs do not work.&amp;nbsp; Just thought I would throw that out as it was frustrating me when my File DSNs were not showing up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2011 23:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-SQL-Stored-Procedure-Question/m-p/231803#M83495</guid>
      <dc:creator />
      <dc:date>2011-07-10T23:49:44Z</dc:date>
    </item>
  </channel>
</rss>

