<?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 NOLOCK, READPAST and SQL table locking in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/NOLOCK-READPAST-and-SQL-table-locking/m-p/974696#M647091</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 have a bit of a tricky problem that seems to be happening in QV but not SQL Management Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using NOLOCK previously for extracting data from a frequently used database (I know table hints are a last resort!). As I have been using this, one of the problems I encounter is occasionally there is a "dirty read" of uncommitted data. This isn't very often but enough to wonder if there is another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen that using the READPAST table hint can solve issues with table locking and also mean that I do not extract any uncommitted data. Testing this in SQL Management Studio confirms that READPAST does not extract data still open (in an uncommitted transaction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem seems to be that when I try this in QV it doesn't work like that (is this due to OLEDB?). QV will extract to a point and then wait until the open transaction has been committed or rolled back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas why this is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 08:59:45 GMT</pubDate>
    <dc:creator>chris_johnson</dc:creator>
    <dc:date>2015-10-14T08:59:45Z</dc:date>
    <item>
      <title>NOLOCK, READPAST and SQL table locking</title>
      <link>https://community.qlik.com/t5/QlikView/NOLOCK-READPAST-and-SQL-table-locking/m-p/974696#M647091</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 have a bit of a tricky problem that seems to be happening in QV but not SQL Management Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using NOLOCK previously for extracting data from a frequently used database (I know table hints are a last resort!). As I have been using this, one of the problems I encounter is occasionally there is a "dirty read" of uncommitted data. This isn't very often but enough to wonder if there is another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen that using the READPAST table hint can solve issues with table locking and also mean that I do not extract any uncommitted data. Testing this in SQL Management Studio confirms that READPAST does not extract data still open (in an uncommitted transaction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem seems to be that when I try this in QV it doesn't work like that (is this due to OLEDB?). QV will extract to a point and then wait until the open transaction has been committed or rolled back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas why this is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 08:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOLOCK-READPAST-and-SQL-table-locking/m-p/974696#M647091</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2015-10-14T08:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: NOLOCK, READPAST and SQL table locking</title>
      <link>https://community.qlik.com/t5/QlikView/NOLOCK-READPAST-and-SQL-table-locking/m-p/1546657#M647092</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you by chance ever find a solution/work around? Having same issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 04:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOLOCK-READPAST-and-SQL-table-locking/m-p/1546657#M647092</guid>
      <dc:creator>roccosdg</dc:creator>
      <dc:date>2019-02-20T04:19:42Z</dc:date>
    </item>
  </channel>
</rss>

