<?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 SQL Stored Procedure - How to call current date parameter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Stored-Procedure-How-to-call-current-date-parameter/m-p/466678#M699463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a stored proc which I want to run for 2 specific dates... which date is a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently im doing something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let date = today();&lt;/P&gt;&lt;P&gt;Let prevDate = AddMonths(Today(),-1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pendinginv:&lt;/P&gt;&lt;P&gt;LOAD *;SQL EXEC (DWH.dbo.gb_FI_CustomersStarRating $('date'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason it is not executing it...it just jumps it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be appriciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 14:51:10 GMT</pubDate>
    <dc:creator>stevegimbrollmt</dc:creator>
    <dc:date>2012-11-26T14:51:10Z</dc:date>
    <item>
      <title>SQL Stored Procedure - How to call current date parameter</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Stored-Procedure-How-to-call-current-date-parameter/m-p/466678#M699463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a stored proc which I want to run for 2 specific dates... which date is a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently im doing something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let date = today();&lt;/P&gt;&lt;P&gt;Let prevDate = AddMonths(Today(),-1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pendinginv:&lt;/P&gt;&lt;P&gt;LOAD *;SQL EXEC (DWH.dbo.gb_FI_CustomersStarRating $('date'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason it is not executing it...it just jumps it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be appriciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 14:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Stored-Procedure-How-to-call-current-date-parameter/m-p/466678#M699463</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2012-11-26T14:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Stored Procedure - How to call current date parameter</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Stored-Procedure-How-to-call-current-date-parameter/m-p/466679#M699464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will need to remove the ' from round the variable. This is an example of a stored procedure call we use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;letThisYear=Year(today());&lt;/P&gt;&lt;P&gt;load*;&lt;/P&gt;&lt;P&gt;sql exec dbo.usp_gls215_build_report_v2 $(ThisYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 14:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Stored-Procedure-How-to-call-current-date-parameter/m-p/466679#M699464</guid>
      <dc:creator />
      <dc:date>2012-11-26T14:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Stored Procedure - How to call current date parameter</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Stored-Procedure-How-to-call-current-date-parameter/m-p/466680#M699465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very kind and helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually here is what I did and it worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Date = date(today(),'yyyy/MM/dd');&lt;/P&gt;&lt;P&gt;Let prevDate = date(AddMonths(Today(),-1),'yyyy/MM/dd');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pendinginv:&lt;/P&gt;&lt;P&gt;LOAD *;SQL EXEC DWH.dbo.gb_FI_CustomersStarRating '$(Date)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 15:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Stored-Procedure-How-to-call-current-date-parameter/m-p/466680#M699465</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2012-11-26T15:43:27Z</dc:date>
    </item>
  </channel>
</rss>

