Microsoft KB Archive/867746

= FIX: The UPDATE query blocks the SELECT query when you run an UPDATE query and a SELECT query at the same time in SQL Server 2000 =

Article ID: 867746

Article Last Modified on 11/2/2007

-

APPLIES TO


 * Microsoft SQL Server 2000 Desktop Engine (Windows)
 * Microsoft SQL Server 2000 Developer Edition
 * Microsoft SQL Server 2000 Enterprise Edition
 * Microsoft SQL Server 2000 Personal Edition
 * Microsoft SQL Server 2000 Standard Edition
 * Microsoft SQL Server 2000 Workgroup Edition

-



BUG #: 471449 (SQL Server 8.0)



''Microsoft distributes Microsoft SQL Server 2000 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2000 fix release.''



SUMMARY
This article describes the following about this hotfix release:
 * The issues that are fixed by this hotfix package
 * The prerequisites for installing the hotfix package
 * Whether you must restart the computer after you install the hotfix package
 * Whether the hotfix package is replaced by any other hotfix package
 * Whether you must make any registry changes
 * The files that are contained in the hotfix package



SYMPTOMS
In Microsoft SQL Server 2000, when you run an UPDATE query and a SELECT query at the same time, the UPDATE query blocks the SELECT query. You experience this problem when you run a SELECT statement that uses the TOP clause and the READPAST locking hint.

Note The SELECT statement successfully runs without being blocked when you remove the TOP clause.

For a list of all publicly released SQL Server 2000 Post-Service Pack 3a hotfixes, click the following article number to view the article in the Microsoft Knowledge Base:

810185 SQL Server 2000 hotfix update for SQL Server 2000 Service Pack 3 and 3a



CAUSE
This problem may occur when there is a clustered index on a table. When there is a clustered index on a table, the READPAST locking hint may not read past the obtained locks. The row that is locked is a key within an index.



Service pack information
To resolve this problem, obtain the latest service pack for SQL Server 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 How to obtain the latest SQL Server 2000 service pack

Prerequisites
 Microsoft SQL Server 2000 Service Pack 3 (SP3)

For information about how to obtain SQL Server 2000 SP3, click the following article number to view the article in the Microsoft Knowledge Base:

290211 How to obtain the latest SQL Server 2000 service pack



Restart information
You do not have to restart the computer after you apply this hotfix.

Registry information
You do not have to change the registry.

Hotfix file information
This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain all the files that you must have to fully update a product to the latest build.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version        Size        File name ---  10-Oct-2003  18:48                      1,581  Inst_repl_hotfix.sql 08-Jun-2004 17:14  2000.80.949.0     352,828  Isqlw.exe 08-Jun-2004 17:14  2000.80.949.0      82,492  Itwiz.exe 08-Jun-2004 17:14  2000.80.949.0      90,692  Msgprox.dll 19-May-2004 23:43  8.11.40209.0      209,408  Mssdi98.dll 08-Jun-2004 17:14  2000.80.949.0      62,024  Odsole70.dll 08-Jun-2004 17:15  2000.80.949.0      25,144  Opends60.dll 08-Jun-2004 17:16                     82,944  Opends60.pdb 08-Jun-2004 17:14  2000.80.949.0      57,904  Osql.exe 08-Jun-2004 17:14  2000.80.949.0     279,104  Pfutil80.dll 10-Oct-2003 18:37                    550,780  Procsyst.sql 08-Apr-2004 21:42                     12,305  Qfe469315.sql 08-Apr-2004 21:42                     19,195  Qfe469571.sql 08-Jun-2004 15:52                  1,104,848  Replmerg.sql 08-Jun-2004 17:14  2000.80.949.0     221,768  Replprov.dll 08-Jun-2004 17:14  2000.80.949.0     307,784  Replrec.dll 08-Jun-2004 16:12  2000.80.949.0     159,813  Replres.rll 10-Oct-2003 18:48                  1,087,150  Replsys.sql 10-Oct-2003 18:48                    986,603  Repltran.sql 08-Jun-2004 17:14  2000.80.949.0     287,304  Rinitcom.dll 08-Jun-2004 17:14  2000.80.949.0      78,416  Sdiclnt.dll 08-Jun-2004 17:14  2000.80.949.0      66,112  Semmap.dll 08-Jun-2004 17:14  2000.80.949.0      57,916  Semnt.dll 08-Jun-2004 17:14  2000.80.949.0     492,096  Semobj.dll 08-Jun-2004 16:37  2000.80.949.0     172,032  Semobj.rll 08-Jun-2004 17:14  2000.80.949.0      53,832  Snapshot.exe 12-Mar-2004 03:10                    117,834  Sp3_serv_uni.sql 08-Jun-2004 17:13  2000.80.949.0      28,672  Sqlagent.dll 08-Jun-2004 17:14  2000.80.949.0     311,872  Sqlagent.exe 08-Jun-2004 17:13  2000.80.949.0     168,001  Sqlakw32.dll 08-Jun-2004 17:15  2000.80.949.0      33,344  Sqlctr80.dll 08-Jun-2004 17:15  2000.80.949.0   4,215,360  Sqldmo.dll 08-Jun-2004 17:14                     25,172  Sqldumper.exe 08-Jun-2004 15:49  2000.80.949.0      28,672  Sqlevn70.rll 08-Jun-2004 17:15  2000.80.949.0     180,792  Sqlmap70.dll 08-Jun-2004 17:15  2000.80.949.0     188,992  Sqlmmc.dll 08-Jun-2004 16:41  2000.80.949.0     479,232  Sqlmmc.rll 08-Jun-2004 17:15  2000.80.949.0     401,984  Sqlqry.dll 08-Jun-2004 17:15  2000.80.949.0      57,920  Sqlrepss.dll 08-Jun-2004 17:15  2000.80.949.0   7,581,777  Sqlservr.exe 08-Jun-2004 17:15                 13,050,880  Sqlservr.pdb 08-Jun-2004 17:15  2000.80.949.0     590,396  Sqlsort.dll 08-Jun-2004 17:15  2000.80.949.0      45,644  Sqlvdi.dll 08-Jun-2004 17:15  2000.80.949.0     106,588  Sqsrvres.dll 08-Jun-2004 17:15  2000.80.949.0      33,340  Ssmslpcn.dll 08-Jun-2004 17:15  2000.80.949.0      82,492  Ssnetlib.dll 08-Jun-2004 17:15  2000.80.949.0      25,148  Ssnmpn70.dll 08-Jun-2004 17:15  2000.80.949.0     123,456  Stardds.dll 08-Jun-2004 17:15  2000.80.949.0     158,240  Svrnetcn.dll 08-Jun-2004 17:14  2000.80.949.0      76,416  Svrnetcn.exe 08-Jun-2004 17:15  2000.80.949.0      49,228  Ums.dll 08-Jun-2004 17:15                    132,096  Ums.pdb 08-Jun-2004 17:15  2000.80.949.0      98,872  Xpweb70.dll Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.



WORKAROUND
To work around this problem, use one of the following methods:
 * Remove the TOP clause from the SELECT query.
 * Use the HASH JOIN hint in the SELECT query.

Note You may experience a decrease in performance when you use the HASH JOIN hint.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in SQL Server 2000 Service Pack 4.



MORE INFORMATION
For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:

822499 New naming schema for Microsoft SQL Server software update packages

For more information about the terminology that Microsoft uses when Microsoft corrects software after it is released, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbsqlserv2000presp4fix kbfix kbbug kbpubtypekc kbhotfixserver kbqfe KB867746

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.