<?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 Comparing Dates For Incremental Load From Sql Server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473927#M177021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue comparing dates from a Sql Server database to pull most recent inserted and changed records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within my script I set my most recent updated/inserted date to the maximum value from the qvd.&amp;nbsp; That value is 41569.498310185 which comes from the date 2013-10-22 11:57:34.000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then change a record on the sql server database to have a updated/inserted date two hours ahead of the previous max date.&amp;nbsp; so it's value is 2013-10-22 13:57:34.000.&amp;nbsp; I run the script again with the WHERE clause comparing my database date greater than or equal to&amp;nbsp; the maximum value from the qvd. WHERE MySqlDate &amp;gt;= $(vLastExecTime).&amp;nbsp; I keep setting the database date a little higher and it still doesn't pick it up.&amp;nbsp; I end up with a date two days in advance.&amp;nbsp; 2013-10-24 18:57:34.000 then it meets the condition and updates the qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume there is some sort of date translation I need to do to the MySqlDate on the Where clause? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2013 16:24:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-15T16:24:01Z</dc:date>
    <item>
      <title>Comparing Dates For Incremental Load From Sql Server</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473927#M177021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue comparing dates from a Sql Server database to pull most recent inserted and changed records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within my script I set my most recent updated/inserted date to the maximum value from the qvd.&amp;nbsp; That value is 41569.498310185 which comes from the date 2013-10-22 11:57:34.000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then change a record on the sql server database to have a updated/inserted date two hours ahead of the previous max date.&amp;nbsp; so it's value is 2013-10-22 13:57:34.000.&amp;nbsp; I run the script again with the WHERE clause comparing my database date greater than or equal to&amp;nbsp; the maximum value from the qvd. WHERE MySqlDate &amp;gt;= $(vLastExecTime).&amp;nbsp; I keep setting the database date a little higher and it still doesn't pick it up.&amp;nbsp; I end up with a date two days in advance.&amp;nbsp; 2013-10-24 18:57:34.000 then it meets the condition and updates the qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume there is some sort of date translation I need to do to the MySqlDate on the Where clause? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 16:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473927#M177021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Dates For Incremental Load From Sql Server</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473928#M177022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Two days in advance ?! So you need a "vMin_time" and a "vMax_time".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Where &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;MySqlDate &amp;gt;= $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMin_time&lt;/SPAN&gt;) and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MySqlDate &amp;lt;= $(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMax_time&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 16:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473928#M177022</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2013-10-15T16:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Dates For Incremental Load From Sql Server</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473929#M177023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would I need a max time?&amp;nbsp; shouldn't I be able to use a Min Date/time and check for greater than or equal to?&amp;nbsp; I want all records that that meet that criteria whether it's just a second greater but Qlikview doesn't seem to be that accurate with the date comparison in some way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 16:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473929#M177023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T16:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Dates For Incremental Load From Sql Server</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473930#M177024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the answer to the problem.&amp;nbsp; According to this post it is because of the different date starting points that QlikView and Sql Server use that the numerical date value is calculated on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/13498"&gt;http://community.qlik.com/thread/13498&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 13:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates-For-Incremental-Load-From-Sql-Server/m-p/473930#M177024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-17T13:21:46Z</dc:date>
    </item>
  </channel>
</rss>

