<?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 Stored Procedure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365233#M135910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please i want to know how to read SQL stored procedure in qlikview&lt;/P&gt;&lt;P&gt;and read the returned &lt;SPAN style="color: #ff0000;"&gt;table&lt;/SPAN&gt; in qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2012 13:16:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-22T13:16:12Z</dc:date>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365233#M135910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please i want to know how to read SQL stored procedure in qlikview&lt;/P&gt;&lt;P&gt;and read the returned &lt;SPAN style="color: #ff0000;"&gt;table&lt;/SPAN&gt; in qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 13:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365233#M135910</guid>
      <dc:creator />
      <dc:date>2012-03-22T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365234#M135911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must first create a CONNECT statement that has '(mode is write)' in the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you must, in the script editor, on the "Settings" tab at the bottom, check the control "Open databases in ... write mode".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should use&lt;/P&gt;&lt;P&gt;SQL EXECUTE &amp;lt;ProcName&amp;gt;&lt;/P&gt;&lt;P&gt;in the QlikView Script. (Or if it is SQL EXEC &amp;lt;ProcName&amp;gt;? I think different drivers have slightly different syntaxes...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 13:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365234#M135911</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-03-22T13:37:02Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365235#M135912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric.&lt;/P&gt;&lt;P&gt;But how about returning table not a single value?&lt;/P&gt;&lt;P&gt;Could you give me an example please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365235#M135912</guid>
      <dc:creator />
      <dc:date>2012-03-22T14:23:48Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365236#M135913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i tried your code&lt;/P&gt;&lt;P&gt;this error appear to me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB read failed&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P&gt;Declare @bank_header_cd varchar(10),&lt;/P&gt;&lt;P&gt;@from_s_date&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar(20),&lt;/P&gt;&lt;P&gt;@to_s_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar(20),&lt;/P&gt;&lt;P&gt;@co_no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar(10),&lt;/P&gt;&lt;P&gt;@curr_cd&amp;nbsp;&amp;nbsp; varchar(4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC [dbo].[ar_bank_balance_total_report_1] '14','01-01-2012','31-01-2012','c', '%'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365236#M135913</guid>
      <dc:creator />
      <dc:date>2012-03-22T14:30:03Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365237#M135914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will get the entire table back. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on other threads, e.g.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/31726"&gt;http://community.qlik.com/thread/31726&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/3223"&gt;http://community.qlik.com/thread/3223&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 15:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365237#M135914</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-03-22T15:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365238#M135915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mona,&lt;/P&gt;&lt;P&gt;If you're using OLEDB try to execute the SP using Call, instead of Execute, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{call SalesByCategory('Produce', '1995')}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See: &lt;A class="active_link" href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms677227(v=vs.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/windows/desktop/ms677227(v=vs.85).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case it would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;SQL &lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Declare @bank_header_cd varchar(10),&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;@from_s_date&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar(20),&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;@to_s_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar(20),&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;@co_no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar(10),&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;@curr_cd&amp;nbsp;&amp;nbsp; varchar(4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;{Call [dbo].[ar_bank_balance_total_report_1]( '14','01-01-2012','31-01-2012','c', '%')};&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 08:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365238#M135915</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2012-03-23T08:25:42Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365239#M135916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bjorn,&lt;/P&gt;&lt;P&gt;but when i tried to execute the stored proc. using call &lt;/P&gt;&lt;P&gt;the same error still recieved which is "OLEDB read failed"&lt;/P&gt;&lt;P&gt;What's the problem Please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2012 09:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365239#M135916</guid>
      <dc:creator />
      <dc:date>2012-03-25T09:24:50Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365240#M135917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monika,&lt;/P&gt;&lt;P&gt;Sorry about the delay in response.&lt;/P&gt;&lt;P&gt;I'm sorry to say that without further information and traces from the OLEDB provider, it's difficult to say what the root cause may be. It could be restrictions on the db server for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From QlikView perspective the only limitation is what Henric pointed out:&lt;/P&gt;&lt;P&gt;- QlikView must be allowed to open connections in read/write mode (check-box in Script editor)&lt;/P&gt;&lt;P&gt;- OLEDB connection must be opened in write mode (done with the parameter (mode is write) in the connect string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of MS SQL are you using and which version of MS OLEDB provider are you using?&lt;/P&gt;&lt;P&gt;Have you tried the provider in any other program, such as MS Excel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 10:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365240#M135917</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2012-04-05T10:00:27Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365241#M135918</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;No need to declare parameters at qlikview end. You need to use Declare @para1 in sql server stored procedure side.&lt;/P&gt;&lt;P&gt;if you need to pass parameter to SP then use Let at qlikview script. ex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let date = today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load A, B&lt;/P&gt;&lt;P&gt;sql exec (mystoredproc '$(date)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a little check, use qlikview debug to see what statement is getting generated just before calling SP. Mind single quotes. Calling SP is not that big deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shubhasheesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 19:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure/m-p/365241#M135918</guid>
      <dc:creator />
      <dc:date>2012-04-07T19:05:35Z</dc:date>
    </item>
  </channel>
</rss>

