<?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 To pass parameters from QlikView application to a stored Procedure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152004#M29608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried something like this?&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;Exec sp_test 'paramvarchar', paramnum&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2009 20:50:13 GMT</pubDate>
    <dc:creator>hector</dc:creator>
    <dc:date>2009-08-07T20:50:13Z</dc:date>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152003#M29607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I want to pass parametrs from qlikview application to a stored procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now i am using hard coded parametrs from SP and directly calling SP into Qlikview application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can kindly any one help me on this urgently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be thankful to you guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj,&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 18:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152003#M29607</guid>
      <dc:creator>rajtechnocraft</dc:creator>
      <dc:date>2009-08-07T18:26:38Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152004#M29608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried something like this?&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;Exec sp_test 'paramvarchar', paramnum&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 20:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152004#M29608</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-08-07T20:50:13Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152005#M29609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;STRONG&gt;Héctor Muñoz&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tried this but SP doesn't ask me to pass parameter when i execute qlikview application&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;what i wanted is when i refresh my qlikview application it should ask me to supply parameters for which i want to fetch results and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;based on the input provided by user i should be able to refresh qlikview application and fetch the result set.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Raj Technocraft&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 15:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152005#M29609</guid>
      <dc:creator>rajtechnocraft</dc:creator>
      <dc:date>2009-08-17T15:32:28Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152006#M29610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, and something like this?&lt;/P&gt;&lt;P&gt;Input:&lt;BR /&gt;Load&lt;BR /&gt; Input('Enter an integer value', 'Input box') as value_int,&lt;BR /&gt; Input('Enter an char value', 'Input box') as value_char&lt;BR /&gt;autogenerate 1;&lt;BR /&gt;&lt;BR /&gt;Let vValue_int = peek('value_int',0,'Input');&lt;BR /&gt;Let vValue_char = peek('value_char',0,'Input');&lt;BR /&gt;&lt;BR /&gt;drop table Input;&lt;BR /&gt;&lt;BR /&gt;SQL&lt;BR /&gt;exec sp_test $(vValue_int),$(vValue_char)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;C ya!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 21:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152006#M29610</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-08-17T21:03:11Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152007#M29611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hector this code is not working ..........&lt;/P&gt;&lt;P&gt;in exec statement is not able to identify $(variable) name .................... it gives "blank field not allowed error"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 15:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152007#M29611</guid>
      <dc:creator />
      <dc:date>2009-08-19T15:25:26Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152008#M29612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting single quotes around the $(variable), like '$(variable)'.&lt;/P&gt;&lt;P&gt;See if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 15:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152008#M29612</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2009-08-19T15:40:06Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152009#M29613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 16:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152009#M29613</guid>
      <dc:creator />
      <dc:date>2009-08-19T16:18:09Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152010#M29614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind of DB are you using? Are you using OLEDB or ODBC? Can you provide an example of your code?&lt;/P&gt;&lt;P&gt;I tried the exact same thing against AdventureWorks in MS SQL2008 executing the SP uspGetEmployeeManagers, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Input:&lt;BR /&gt;Load input('Employee Manager','Input box') as val_int&lt;BR /&gt;autogenerate 1;&lt;BR /&gt;Let vValue=peek('val_int',0,'Input');&lt;BR /&gt;SQL EXEC dbo.uspGetEmployeeManagers '$(vValue)'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It's working great here, using OLEDB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 18:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152010#M29614</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2009-08-19T18:29:15Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152011#M29615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we using ODBC .................&lt;/P&gt;&lt;P&gt;Ms sQL server2005&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 23:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152011#M29615</guid>
      <dc:creator />
      <dc:date>2009-08-19T23:37:11Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152012#M29616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create Procedure test_proc @date1 datetime, @date2 Datetime, @Vol Float Output&lt;BR /&gt;AS&lt;BR /&gt;Begin&lt;BR /&gt;Select @Vol = Max(Volume) From Test Where date1 &amp;gt;= @date1 and date2 &amp;lt;= @date2&lt;BR /&gt;End&lt;/P&gt;&lt;P&gt;this is my proc @ backend which accepts two input parametes date1 &amp;amp; date2 ...... based on that it returns output in @vol.&lt;/P&gt;&lt;P&gt;code i'm using in QV&lt;/P&gt;&lt;P&gt;Input:&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt;&lt;BR /&gt;Input('Enter an from date value', 'Input box') as value1_date,&lt;BR /&gt;Input('Enter an end date value', 'Input box') as value2_date&lt;BR /&gt;autogenerate 1;&lt;BR /&gt;&lt;BR /&gt;Let FromDate = peek('value1_date','2008/01/04','Input');&lt;BR /&gt;Let DateTo = peek('value2_date','2009/01/04','Input');&lt;BR /&gt;&lt;BR /&gt;sql&lt;BR /&gt;&lt;BR /&gt;Declare&lt;BR /&gt;@vol int,&lt;BR /&gt;@FromDate datetime,&lt;BR /&gt;@DateTo datetime&lt;BR /&gt;&lt;BR /&gt;Execute [dbo].[test_proc] '$(FromDate)', '$(DateTo)', @vol = @vol output&lt;BR /&gt;&lt;BR /&gt;Select @vol&lt;/P&gt;&lt;P&gt;when i refresh my appn it asks me for two input dates , but doesnt display any output...&lt;/P&gt;&lt;P&gt;what i believe is that it might not be passing '$variable' to input parameters . i confirmed this by adding same code to another sp which gives error saying" blan fields not allowed in sql"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 23:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152012#M29616</guid>
      <dc:creator />
      <dc:date>2009-08-19T23:40:19Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152013#M29617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why you change the '0' by dates?&lt;/P&gt;&lt;P&gt;0 represents the first record, you can't change this, because the table says autogenerate (1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c ya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 23:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152013#M29617</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-08-19T23:49:15Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152014#M29618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh ............... i thought '0' was for integer type ,,,,,,,,,, thatz y replaced it with date as i wanted to pass date as input variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 23:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152014#M29618</guid>
      <dc:creator />
      <dc:date>2009-08-19T23:51:52Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152015#M29619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made this test&lt;/P&gt;&lt;P&gt;SQL Server 2000&lt;/P&gt;&lt;P&gt;CREATE PROCEDURE [dbo].[sp_test] @param1 as int&lt;BR /&gt;AS&lt;BR /&gt;&lt;BR /&gt;Select @param1*2 as result&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;QlikView&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [My_Server] (XUserId is bMaAdZFMIF);&lt;BR /&gt;&lt;BR /&gt;SQL&lt;BR /&gt;exec HM..sp_test 1;&lt;/P&gt;&lt;P&gt;and qlikview gave me the result column&lt;/P&gt;&lt;P&gt;Check the parameters&lt;/P&gt;&lt;P&gt;C ya!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 23:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152015#M29619</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-08-19T23:56:57Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152016#M29620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried changing following code&lt;/P&gt;&lt;P&gt;Create Procedure test_proc @date1 datetime, @date2 Datetime, @Vol Float Output&lt;BR /&gt;AS&lt;BR /&gt;Begin&lt;BR /&gt;Select @Vol = Max(Volume) From Test Where date1 &amp;gt;= @date1 and date2 &amp;lt;= @date2&lt;BR /&gt;End&lt;/P&gt;&lt;P&gt;this is my proc @ backend which accepts two input parametes date1 &amp;amp; date2 ...... based on that it returns output in @vol.&lt;/P&gt;&lt;P&gt;code i'm using in QV&lt;/P&gt;&lt;P&gt;Input:&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt;&lt;BR /&gt;Input('Enter an from date value', 'Input box') as value1_date,&lt;BR /&gt;Input('Enter an end date value', 'Input box') as value2_date&lt;BR /&gt;autogenerate 1;&lt;BR /&gt;&lt;BR /&gt;Let FromDate = peek('value1_date',0,'Input');&lt;BR /&gt;Let DateTo = peek('value2_date,0,'Input');&lt;BR /&gt;&lt;BR /&gt;sql&lt;BR /&gt;&lt;BR /&gt;Declare&lt;BR /&gt;@vol int,&lt;BR /&gt;@FromDate datetime,&lt;BR /&gt;@DateTo datetime&lt;/P&gt;&lt;P&gt;set @FromDate = '$(FromDate)'&lt;/P&gt;&lt;P&gt;set @DateTo = '$(DateTo)'&lt;BR /&gt;&lt;BR /&gt;Execute [dbo].[test_proc] @FromDate, @DateTo, @vol = @vol output&lt;BR /&gt;&lt;BR /&gt;Select @vol as @vol&lt;/P&gt;&lt;P&gt;when i refresh my appn it asks me for two input dates , but doesnt display any output. column (in my case @vol) .............. .. dont know why&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 11:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152016#M29620</guid>
      <dc:creator />
      <dc:date>2009-08-20T11:47:19Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152017#M29621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hector ........&lt;/P&gt;&lt;P&gt;when i pass hard coded values my sp is running perfectly fine, problem arises when i use input variables to pass values........... go thru code i sent you again........... you missing a line there&lt;/P&gt;&lt;P&gt;archanah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 14:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152017#M29621</guid>
      <dc:creator />
      <dc:date>2009-08-20T14:30:39Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152018#M29622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the sp is running fine in QV when hardcoding values, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sql&lt;BR /&gt;&lt;BR /&gt;Declare&lt;BR /&gt;@vol int,&lt;BR /&gt;&lt;BR /&gt;Execute [dbo].[test_proc] '2008/01/04', '2009/01/04', @vol output&lt;BR /&gt;&lt;BR /&gt;Select @vol as vol&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;the only thing I can think of is that you're getting a miss-match of datatypes when using variables. I wonder if QV is picking up your variables as numeric values? Hmm... could try to add a text-object with an expression like =num('$FromDate') to see if QV will recognize it as a date (it should then convert to numeric format).&lt;/P&gt;&lt;P&gt;I tried both ODBC and OLEDB calling another sp from QV with the following, and it's working just fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Input:&lt;BR /&gt;Load input('Start Date','Input box') as val_start,&lt;BR /&gt;input('End Date','Input box') as val_end&lt;BR /&gt;autogenerate 1;&lt;BR /&gt;Let vStart=peek('val_start',0,'Input');&lt;BR /&gt;Let vEnd=text(peek('val_end',0,'Input'));&lt;BR /&gt;SQL /****** Script for SelectTopNRows command from SSMS ******/&lt;BR /&gt;declare @inv float&lt;BR /&gt;Execute dbo.spInv '$(vStart)', '$(vEnd)', @inv out&lt;BR /&gt;Select @inv as tmp&lt;BR /&gt;;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I know that datatypes, especially when it comes to date-formats can be a bit tricky so it could be worth a shot to create a simple stored procedure with integers, instead of datetime. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;CREATE PROCEDURE [dbo].[test] (&lt;BR /&gt; -- Add the parameters for the stored procedure here&lt;BR /&gt; @input1 int,&lt;BR /&gt; @input2 int,&lt;BR /&gt; @parmOut int Output )&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt; set @parmOut = @input1 + @input2&lt;BR /&gt;END&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and in QV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;input:&lt;BR /&gt;Load&lt;BR /&gt;input('val1','Input box') as val1,&lt;BR /&gt;input('val2','Input box') as val2&lt;BR /&gt;autogenerate 1;&lt;BR /&gt;Let val1 = peek('val1',0,'input');&lt;BR /&gt;let val2 = peek('val2',0,'input');&lt;BR /&gt;SQL&lt;BR /&gt;declare @out int&lt;BR /&gt;Execute dbo.test '$(val1)','$(val2)',@out output&lt;BR /&gt;Select @out as tmp;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 16:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152018#M29622</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2009-08-20T16:49:49Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152019#M29623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with &lt;B&gt;Bjorn&lt;/B&gt; check the formats and the the internal values, sometimes for the date values QlikView shows 01/01/2009 but internally is a number 39000 something&lt;/P&gt;&lt;P&gt;I don't know, maybe you can pass the parameter something like 20090101 and internally in your sp (SQL Sintax) use the convert/cast function.&lt;/P&gt;&lt;P&gt;you can use the trace function or "Generate Log file" issue.&lt;/P&gt;&lt;P&gt;c ya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 20:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152019#M29623</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-08-20T20:02:37Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152020#M29624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Bjorn.................&lt;/P&gt;&lt;P&gt;thanks 4 ur reply ............. it was really helpful .............&lt;/P&gt;&lt;P&gt;sometime qlikview behaves so stupidly ........................ i tried date function in two different appn... it is returning me date and in second it returns number......... i'm so confused.....................&lt;/P&gt;&lt;P&gt;anyidea y this cud be happening&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 23:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152020#M29624</guid>
      <dc:creator />
      <dc:date>2009-08-20T23:03:14Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152021#M29625</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;&lt;/P&gt;&lt;P&gt;my sp is working fine now.............. it was taking date as num............... thanks againg for solving my prob&lt;/P&gt;&lt;P&gt;C Ya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 13:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152021#M29625</guid>
      <dc:creator />
      <dc:date>2009-08-25T13:55:22Z</dc:date>
    </item>
    <item>
      <title>To pass parameters from QlikView application to a stored Procedure</title>
      <link>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152022#M29626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Please don't forget to mark the answer to help others finding it.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bjorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 14:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-pass-parameters-from-QlikView-application-to-a-stored/m-p/152022#M29626</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2009-08-25T14:25:54Z</dc:date>
    </item>
  </channel>
</rss>

