<?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: how to call store procedure from SQL Server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372094#M820451</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;May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use OLEDB connection string in Write mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;xx_Instance:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SELECT Instance_ID FROM dbo.xx_Instance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vInstance = Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Instance_ID' , 0, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;xx_Instance'&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Exec &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[DBNAME].[dbo].&lt;/SPAN&gt;SP_NAME @DateFrom = '1 Jul 2017', @DateTo = '5 Jul 2017', @Instance = &lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: x-small; background-color: #e0e0e0;"&gt;'$(&lt;SPAN style="font-size: 13.3333px;"&gt;vInstance&lt;/SPAN&gt;)'&lt;/SPAN&gt;, @ShowQuery = 0, @ReportName = '', @Debug = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2017 09:54:16 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2017-08-09T09:54:16Z</dc:date>
    <item>
      <title>how to call store procedure from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372091#M820448</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 have following store procedure in SQL server that generate data in tabular format.&lt;/P&gt;&lt;P&gt;DECLARE @Instance&amp;nbsp;&amp;nbsp; &amp;lt; Table type variable &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DECLARE @ShowQuery&amp;nbsp; &amp;lt; Table type variable&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NSERT INTO @Instance SELECT Instance_ID FROM dbo.xx_Instance&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NSERT INTO @ShowQuery Values(0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; EXEC SP_NAME @DateFrom = '1 Jul 2017', @DateTo = '5 Jul 2017', @Instance = @Instance, @ShowQuery = @ShowQuery, @ReportName = '', @Debug = 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;I want to call this in QlikView i am trying the following steps however it is not doing anything ,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sp:&lt;BR /&gt;SQL&lt;/P&gt;&lt;P&gt;DECLARE @Instance&amp;nbsp;&amp;nbsp; &amp;lt; Table type variable &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DECLARE @ShowQuery&amp;nbsp; &amp;lt; Table type variable&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NSERT INTO @Instance SELECT Instance_ID FROM dbo.xx_Instance&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NSERT INTO @ShowQuery Values(0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; EXEC SP_NAME @DateFrom = '1 Jul 2017', @DateTo = '5 Jul 2017', @Instance = @Instance, @ShowQuery = @ShowQuery, @ReportName = '', @Debug = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372091#M820448</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to call store procedure from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372092#M820449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/74815"&gt;How to Call stored procedure in Qlikview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/148060" title="https://community.qlikview.com/thread/148060"&gt;Execute a Stored Procedure in Qlikview | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 07:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372092#M820449</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-08-09T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to call store procedure from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372093#M820450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; PM, thank you for the quick reply.&lt;/P&gt;&lt;P&gt;I have seen these posts but it did not work.&lt;/P&gt;&lt;P&gt;There is something that I am doing wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 08:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372093#M820450</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2017-08-09T08:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to call store procedure from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372094#M820451</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;May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use OLEDB connection string in Write mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;xx_Instance:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SELECT Instance_ID FROM dbo.xx_Instance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vInstance = Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Instance_ID' , 0, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;xx_Instance'&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Exec &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[DBNAME].[dbo].&lt;/SPAN&gt;SP_NAME @DateFrom = '1 Jul 2017', @DateTo = '5 Jul 2017', @Instance = &lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: x-small; background-color: #e0e0e0;"&gt;'$(&lt;SPAN style="font-size: 13.3333px;"&gt;vInstance&lt;/SPAN&gt;)'&lt;/SPAN&gt;, @ShowQuery = 0, @ReportName = '', @Debug = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372094#M820451</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2017-08-09T09:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to call store procedure from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372095#M820452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, It is not working,&lt;/P&gt;&lt;P&gt;Even a simple store procedure like below is not returning any data, is there any other setting that I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; EXEC SP_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; @DateFrom = '10 Jul 2017', @DateTo = '17 Jul 2017',@ReportName = '', @Debug = 1 ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am not getting any error though however no data return.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 12:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372095#M820452</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2017-08-09T12:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to call store procedure from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372096#M820453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working now , after putting the following lines before the store procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET NOCOUNT ON &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 05:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-call-store-procedure-from-SQL-Server/m-p/1372096#M820453</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2017-08-10T05:30:11Z</dc:date>
    </item>
  </channel>
</rss>

