<?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 OLEDB read failed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OLEDB-read-failed/m-p/423133#M696491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After an OLEDB CONNECT TO claue I am trying to use the following SQL statement in my QlikView Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SQL SELECT * FROM [JBVProcessDB01].[dbo].[tblEvent01]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;INNER JOIN &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SELECT MAX(DateTime) as LatestDate, [sFieldValue0]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM [JBVProcessDB01].[dbo].[tblEvent01]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Group by sFieldValue0&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;) SubMax&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;on [JBVProcessDB01].[dbo].[tblEvent01].DateTime = SubMax.LatestDate&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;and [JBVProcessDB01].[dbo].[tblEvent01].sFieldValue0 = SubMax.sFieldValue0 and lFieldValue2 &amp;gt; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I run the script I get an error message stating that "OLEDB read failed". This SQL query works fine in SQL management studio, and I have tested my OLEDB CONNECT TO statement which also works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what can be the problem here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2013 10:40:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-03T10:40:17Z</dc:date>
    <item>
      <title>OLEDB read failed</title>
      <link>https://community.qlik.com/t5/QlikView/OLEDB-read-failed/m-p/423133#M696491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After an OLEDB CONNECT TO claue I am trying to use the following SQL statement in my QlikView Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SQL SELECT * FROM [JBVProcessDB01].[dbo].[tblEvent01]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;INNER JOIN &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SELECT MAX(DateTime) as LatestDate, [sFieldValue0]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM [JBVProcessDB01].[dbo].[tblEvent01]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Group by sFieldValue0&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;) SubMax&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;on [JBVProcessDB01].[dbo].[tblEvent01].DateTime = SubMax.LatestDate&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;and [JBVProcessDB01].[dbo].[tblEvent01].sFieldValue0 = SubMax.sFieldValue0 and lFieldValue2 &amp;gt; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I run the script I get an error message stating that "OLEDB read failed". This SQL query works fine in SQL management studio, and I have tested my OLEDB CONNECT TO statement which also works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what can be the problem here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 10:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OLEDB-read-failed/m-p/423133#M696491</guid>
      <dc:creator />
      <dc:date>2013-05-03T10:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: OLEDB read failed</title>
      <link>https://community.qlik.com/t5/QlikView/OLEDB-read-failed/m-p/423134#M696492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;though too late, but just wanted to answer for others so that they do not find it unanswered &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same "OLEDB read failed" error. Which occurred due to duplicate columns names in the query. When removed, it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 12:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OLEDB-read-failed/m-p/423134#M696492</guid>
      <dc:creator />
      <dc:date>2013-10-28T12:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: OLEDB read failed</title>
      <link>https://community.qlik.com/t5/QlikView/OLEDB-read-failed/m-p/423135#M696493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice work &lt;A href="https://community.qlik.com/qlik-users/135276"&gt;Sibtain Naqvi&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 19:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OLEDB-read-failed/m-p/423135#M696493</guid>
      <dc:creator />
      <dc:date>2014-05-12T19:37:10Z</dc:date>
    </item>
  </channel>
</rss>

