<?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: OLE filtering date issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OLE-filtering-date-issue/m-p/1362846#M835972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does any load work without a where-statement? I think it's rather an issue with your used oledb-driver - try it with a different one or with an odbc-driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 12:35:21 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-05-31T12:35:21Z</dc:date>
    <item>
      <title>OLE filtering date issue</title>
      <link>https://community.qlik.com/t5/QlikView/OLE-filtering-date-issue/m-p/1362845#M835971</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;Currently I having problem retrieving data by using OLE connection from MSSQL. Below is the script used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;SQL &lt;/P&gt;&lt;P&gt;&amp;nbsp; select&lt;/P&gt;&lt;P&gt;&amp;nbsp; Top 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SourceTable&lt;/P&gt;&lt;P&gt;&amp;nbsp; where&lt;/P&gt;&lt;P&gt;&amp;nbsp; DateValue &amp;gt;= convert(DATETIME,'2016-09-21 00:00:03',206)&lt;/P&gt;&lt;P&gt;&amp;nbsp; and &lt;SPAN style="font-size: 13.3333px;"&gt;DateValue &lt;/SPAN&gt;&amp;lt; convert(DATETIME,'2016-09-21 10:25:03',206)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I try the same code in the native MSSQL client. it does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further troubleshooting, Qlikview manages to display data without using date in filtering criteria.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Output:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; select&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Top 100&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; from&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SourceTable&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; where&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column1 = 'A' &lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is there a way to retrieve data from MSSQL within a specific date range ? I had try several different style but with no luck, like,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;datediff( day ,&lt;SPAN style="font-size: 13.3333px;"&gt;DateValue &lt;/SPAN&gt;,'2016-09-21 00:00:03' ) &amp;gt;= 0&amp;nbsp; and datediff( day ,&lt;SPAN style="font-size: 13.3333px;"&gt;DateValue &lt;/SPAN&gt;,'2016-09-21 10:25:03' ) &amp;lt;0&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DateValue &lt;/SPAN&gt;between '2016-09-21 00:00:03' and '2016-09-23 10:25:03'&lt;/LI&gt;&lt;LI&gt;Cast(&amp;nbsp; replace( convert( varchar(30) ,&lt;SPAN style="font-size: 13.3333px;"&gt;DateValue &lt;/SPAN&gt;,112 ) +convert( varchar(30) ,&lt;SPAN style="font-size: 13.3333px;"&gt;DateValue &lt;/SPAN&gt;,108 ),':','') as bigint )&amp;nbsp; &amp;gt;= &lt;SPAN style="font-size: 13.3333px;"&gt;20160921000003 and &lt;SPAN style="font-size: 13.3333px;"&gt;Cast(&amp;nbsp; replace( convert( varchar(30) ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DateValue &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,112 ) +convert( varchar(30) ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DateValue &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,108 ),':','') as bigint )&amp;nbsp; &amp;lt; &lt;SPAN style="font-size: 13.3333px;"&gt;20160921102503&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But with no success. Is there a way to achieve this ? or is it a limitation Qlikivew &amp;amp; OLEDB ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &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/OLE-filtering-date-issue/m-p/1362845#M835971</guid>
      <dc:creator>bkkuah17</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: OLE filtering date issue</title>
      <link>https://community.qlik.com/t5/QlikView/OLE-filtering-date-issue/m-p/1362846#M835972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does any load work without a where-statement? I think it's rather an issue with your used oledb-driver - try it with a different one or with an odbc-driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 12:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OLE-filtering-date-issue/m-p/1362846#M835972</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-31T12:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: OLE filtering date issue</title>
      <link>https://community.qlik.com/t5/QlikView/OLE-filtering-date-issue/m-p/1362847#M835973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ODBC seem to be working, looks like OLE to be the issue.&lt;/P&gt;&lt;P&gt;Qlikview server which need to link with various DB via OLE will hit problems if OLE drivers not install for each db it uses ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 01:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OLE-filtering-date-issue/m-p/1362847#M835973</guid>
      <dc:creator>bkkuah17</dc:creator>
      <dc:date>2017-06-01T01:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: OLE filtering date issue</title>
      <link>https://community.qlik.com/t5/QlikView/OLE-filtering-date-issue/m-p/1362848#M835974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In each case you will need the right db-drivers and if you want to access several db's you might need a whole bunch of different drivers. As long as you don't need to pull constantly huge datasets and/or you had only quite small time-frames for it go for odbc-drivers as they are simpler and more robust and many transformations could be done within a &lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt; so that it not needs mandatory complex sql-statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 04:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OLE-filtering-date-issue/m-p/1362848#M835974</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-06-01T04:47:38Z</dc:date>
    </item>
  </channel>
</rss>

