<?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: Error converting data type varchar to datetime when using stored procedure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-converting-data-type-varchar-to-datetime-when-using-stored/m-p/271629#M101808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this already solved? Or do you still have the same problem? In the Store Procedure you're invoking the dates with wich type?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 09:44:22 GMT</pubDate>
    <dc:creator>agomes1971</dc:creator>
    <dc:date>2014-07-01T09:44:22Z</dc:date>
    <item>
      <title>Error converting data type varchar to datetime when using stored procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Error-converting-data-type-varchar-to-datetime-when-using-stored/m-p/271628#M101807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a specific stored procedure for 2 years now.&lt;/P&gt;&lt;P&gt;And without any update the last months I get the following error since last week...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿"ERROR converting data type varchar to datetime"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview parameters who gives me first day last year and one year in the future:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿LET vStartDate = DATE(YEARSTART(NOW(),-1), 'YYYY-MM-DD'); &lt;/P&gt;&lt;P&gt;﻿LET vEndDate = DATE(MonthEng(Addmonths(NOW(),12)), 'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;LET paraA = 1&lt;/P&gt;&lt;P&gt;LET paraB = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using in Qlikview &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿SQL EXEC "$(vDatabase)".dbo.[STOREDPROCEDURE] ﻿'$(paraA)', '$(vStartDate)', '$(vEndDate)', '$(paraB)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it works for 2 years but the last month not....&lt;/P&gt;&lt;P&gt;How can this happen? The error is about the two date I think...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 08:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-converting-data-type-varchar-to-datetime-when-using-stored/m-p/271628#M101807</guid>
      <dc:creator />
      <dc:date>2011-06-08T08:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error converting data type varchar to datetime when using stored procedure</title>
      <link>https://community.qlik.com/t5/QlikView/Error-converting-data-type-varchar-to-datetime-when-using-stored/m-p/271629#M101808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this already solved? Or do you still have the same problem? In the Store Procedure you're invoking the dates with wich type?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-converting-data-type-varchar-to-datetime-when-using-stored/m-p/271629#M101808</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2014-07-01T09:44:22Z</dc:date>
    </item>
  </channel>
</rss>

