Microsoft KB Archive/893172

= FIX: An access violation may occur when you use the READPAST lock hint and you use a non-clustered index in your query in SQL Server 2000 =

Article ID: 893172

Article Last Modified on 11/2/2007

-

APPLIES TO


 * Microsoft SQL Server 2000 Desktop Engine (Windows)
 * Microsoft SQL Server 2000 Personal Edition
 * Microsoft SQL Server 2000 Developer Edition
 * Microsoft SQL Server 2000 Standard Edition
 * Microsoft SQL Server 2000 Enterprise Edition
 * Microsoft SQL Server 2000 Developer Edition
 * Microsoft SQL Server 2000 Enterprise Edition 64-bit

-



Bug #: 473682 (SQL Server 8.0)



Article contents
 Summary Symptoms Cause Resolution 

Hotfix information

 

Prerequisites

 

Restart information

</li> 

Hotfix file information

</li> Workaround</li> Status</li> More Information</li></ul>

<div class="summary_section">

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 your 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

back to the top

<div class="symptoms_section">

SYMPTOMS
In Microsoft SQL Server 2000, when you use the READPAST lock hint to query a table, the lock hint may cause an access violation to occur. When the access violation occurs, you receive the following error message in the SQL Server error log:

SqlDumpExceptionHandler: SqlDumpExceptionHandler: Process  generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

Additionally, the following stack dump is displayed in the details of the error message:


 * Short Stack Dump


 * 008008A9 Module(sqlservr+004008A9) (SafePositionToBookmark+00000073)


 * 00800822 Module(sqlservr+00400822) (RowsetSS::GetRowsByBookmark+00000083)


 * 0043AFFF Module(sqlservr+0003AFFF) (CQScanFetch::GetRow+000000A4)


 * 0056D0EC Module(sqlservr+0016D0EC) (CQScanFilter::GetRow+00000019)


 * 006E3308 Module(sqlservr+002E3308) (CQScanConcat::GetRow+0000001C)


 * 0040E1DB Module(sqlservr+0000E1DB) (CQScanTop::GetRow+00000045)


 * 0040DEE3 Module(sqlservr+0000DEE3) (CQueryScan::GetRow+00000014)


 * 0059A22F Module(sqlservr+0019A22F) (CFetchKeyset::Fetch+0000052D)


 * 00582DB7 Module(sqlservr+00182DB7) (CCursor::Fetch+00000249)


 * 00590F77 Module(sqlservr+00190F77) (SPCursor::Fetch+00000546)


 * 005F144B Module(sqlservr+001F144B) (CSpecProc::ExecuteSpecial+000000D5)


 * 005F1988 Module(sqlservr+001F1988) (CSpecProc::Execute+000000B6)


 * 0061353F Module(sqlservr+0021353F) (execrpc+000004A6)


 * 0043816D Module(sqlservr+0003816D) (execute_rpc+00000019)


 * 00427001 Module(sqlservr+00027001) (process_commands+00000232)


 * 41075002 Module(UMS+00005002) (ProcessWorkRequests+00000272)


 * 41074698 Module(UMS+00004698) (ThreadStartRoutine+00000098)


 * 78008454 Module(MSVCRT+00008454) (endthread+000000C1)


 * 7C4E987C Module(KERNEL32+0000987C) (SetThreadExecutionState+00000227)

Note This problem does not occur when a clustered index is used in the query.

For a list of previous hotfixes, see the &quot;Microsoft SQL Server 2000 post-Service Pack 3 or Microsoft SQL Server 2000 post-Service Pack 3a hotfixes&quot; section in the following Microsoft Knowledge Base article:

290211 How to obtain the latest SQL Server 2000 service pack

back to the top

<div class="cause_section">

CAUSE
This problem may occur when any one of the following conditions is true:
 * One connection that is using the READPAST lock hint query is between a cursor open request and a cursor fetch request. Another connection updates rows of a bookmark result set. This condition may cause the bookmark position to be Null. The Null bookmark position causes access violation to occur.
 * Your application uses the Microsoft Open Database Connectivity (ODBC) interface or the Microsoft OLEDB interface for server-side cursors that use the READPAST hint in SELECT statements.

back to the top

<div class="resolution_section">

Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next SQL Server 2000 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

back to the top

Prerequisites
You must install SQL Server 2000 Service Pack 3. For more information about how to obtain SQL Server 2000 Service Pack 3, 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

back to the top

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

back to the top

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.

SQL Server 2000, 32-bit versions
<pre class="fixed_text">  Date         Time   Version         Size       File name ---  10-Feb-2005  17:59  2000.80.1007.0    664,128  Autoplt.dll 10-Feb-2005 17:59  2000.80.1007.0     78,400  Console.exe 10-Feb-2005 17:59  2000.80.1007.0    332,352  Ctasksui.dll 10-Feb-2005 17:59  2000.80.1007.0    315,968  Custtask.dll 10-Feb-2005 17:59  2000.80.1007.0     33,340  Dbmslpcn.dll 10-Feb-2005 17:59  2000.80.1007.0  1,905,216  Dtspkg.dll 10-Feb-2005 17:59  2000.80.1007.0    528,960  Dtspump.dll 10-Feb-2005 17:59  2000.80.1007.0     41,536  Dtsrun.exe 10-Feb-2005 17:59  2000.80.1007.0  1,557,052  Dtsui.dll 10-Feb-2005 17:59  2000.80.1007.0    639,552  Dtswiz.dll 10-Feb-2005 17:59  2000.80.1007.0    352,828  Isqlw.exe 10-Feb-2005 17:59  2000.80.1007.0     82,492  Itwiz.exe 10-Feb-2005 17:59  2000.80.1007.0     90,692  Msgprox.dll 31-Dec-2004 19:16  8.11.41022.0      226,304  Mssdi98.dll 10-Feb-2005 17:59  2000.80.1007.0     62,024  Odsole70.dll 10-Feb-2005 18:00  2000.80.1007.0     25,144  Opends60.dll 10-Feb-2005 03:56                     17,576  Opends60.lib 10-Feb-2005 17:59  2000.80.1007.0     57,904  Osql.exe 10-Feb-2005 17:59  2000.80.1007.0    279,104  Pfutil80.dll 10-Feb-2005 17:59  2000.80.1007.0    143,940  Qrdrsvc.exe 10-Feb-2005 17:59  2000.80.1007.0    221,768  Replprov.dll 10-Feb-2005 17:59  2000.80.1007.0    307,784  Replrec.dll 10-Feb-2005 17:59  2000.80.1007.0    287,304  Rinitcom.dll 10-Feb-2005 17:59  2000.80.1007.0     78,416  Sdiclnt.dll 10-Feb-2005 17:59  2000.80.1007.0     66,112  Semmap.dll 10-Feb-2005 17:59  2000.80.1007.0     57,916  Semnt.dll 10-Feb-2005 17:59  2000.80.1007.0    492,096  Semobj.dll 10-Feb-2005 17:59  2000.80.1007.0     53,832  Snapshot.exe 10-Feb-2005 17:58  2000.80.1007.0     28,672  Sqlagent.dll 10-Feb-2005 17:59  2000.80.1007.0    311,872  Sqlagent.exe 10-Feb-2005 17:58  2000.80.1007.0    168,001  Sqlakw32.dll 10-Feb-2005 03:09                      4,352  Sqlakw32.lib 10-Feb-2005 18:00  2000.80.1007.0     33,344  Sqlctr80.dll 10-Feb-2005 18:00  2000.80.1007.0    815,676  Sqldata.dll 10-Feb-2005 18:00  2000.80.1007.0  4,215,360  Sqldmo.dll 10-Feb-2005 17:59                     25,172  Sqldumper.exe 10-Feb-2005 17:59  2000.80.1007.0    156,224  Sqlmaint.exe 10-Feb-2005 18:00  2000.80.1007.0    180,792  Sqlmap70.dll 10-Feb-2005 18:00  2000.80.1007.0    188,992  Sqlmmc.dll 10-Feb-2005 18:00  2000.80.1007.0    401,984  Sqlqry.dll 10-Feb-2005 18:00  2000.80.1007.0     57,920  Sqlrepss.dll 10-Feb-2005 18:00  2000.80.1007.0  7,721,041  Sqlservr.exe 10-Feb-2005 18:00  2000.80.1007.0    590,396  Sqlsort.dll 10-Feb-2005 18:00  2000.80.1007.0     45,644  Sqlvdi.dll 10-Feb-2005 18:00  2000.80.1007.0    106,588  Sqsrvres.dll 10-Feb-2005 18:00  2000.80.1007.0     33,340  Ssmsgnet.dll 10-Feb-2005 18:00  2000.80.1007.0     33,340  Ssmslpcn.dll 10-Feb-2005 18:00  2000.80.1007.0     33,340  Ssmsqlgc.dll 10-Feb-2005 18:00  2000.80.1007.0     33,340  Ssmssnet.dll 10-Feb-2005 18:00  2000.80.1007.0     82,492  Ssnetlib.dll 10-Feb-2005 18:00  2000.80.1007.0     25,148  Ssnmpn70.dll 10-Feb-2005 18:00  2000.80.1007.0    123,456  Stardds.dll 10-Feb-2005 18:00  2000.80.1007.0    158,240  Svrnetcn.dll 10-Feb-2005 17:59  2000.80.1007.0     76,416  Svrnetcn.exe 10-Feb-2005 18:00  2000.80.1007.0     49,228  Ums.dll 10-Feb-2005 18:00  2000.80.1007.0     74,304  Xplog70.dll 10-Feb-2005 18:00  2000.80.1007.0     98,872  Xpweb70.dll 15-Feb-2005 22:18                      6,726  Hotfix1.inf 15-Feb-2005 22:18                      2,469  Hotfix2.inf 31-Dec-2004 19:15  8.0.21213.0       352,256  Msvcr71.dll 31-Dec-2004 19:15  2000.80.796.0      57,904  Osql.exe 31-Dec-2004 19:15  2000.80.534.0     127,548  Sqdedev.dll 31-Dec-2004 19:15  2000.80.194.0     180,290  Sqlunirl.dll 10-Feb-2005 02:56  2000.80.1007.0    159,813  Replres.rll 10-Feb-2005 03:37  2000.80.1007.0    172,032  Semobj.rll 10-Feb-2005 02:45  2000.80.1007.0     28,672  Sqlevn70.rll 10-Feb-2005 03:44  2000.80.1007.0    479,232  Sqlmmc.rll

SQL Server 2000, 64-bit version
<pre class="fixed_text">  Date         Time   Version         Size        File name      Platform ---  03-Mar-2005  22:13  2000.80.1007.0      56,832  Dbmslpcn.dll   IA-64 03-Mar-2005 22:12  2000.80.1007.0     528,960  Dtspump.dll 03-Mar-2005 22:13  2000.80.1007.0     185,856  Msgprox.dll 31-Dec-2004 19:10  8.11.41022.0       742,912  Mssdi98.dll 03-Mar-2005 22:13  2000.80.1007.0     151,040  Odsole70.dll 03-Mar-2005 22:14  2000.80.1007.0      27,136  Opends60.dll 10-Feb-2005 18:17                      19,880  Opends60.lib 03-Mar-2005 22:13  2000.80.1007.0     148,992  Osql.exe 03-Mar-2005 22:13  2000.80.1007.0     353,280  Qrdrsvc.exe    IA-64 03-Mar-2005 22:13  2000.80.1007.0     534,528  Replprov.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0     769,024  Replrec.dll 03-Mar-2005 22:13  2000.80.1007.0     650,240  Rinitcom.dll 03-Mar-2005 22:13  2000.80.1007.0     160,768  Semmap.dll     IA-64 03-Mar-2005 22:13  2000.80.1007.0     132,608  Semnt.dll      IA-64 03-Mar-2005 22:13  2000.80.1007.0      88,576  Snapshot.exe 03-Mar-2005 22:12  2000.80.1007.0      10,240  Sqlagent.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0   1,055,232  Sqlagent.exe 03-Mar-2005 22:13  2000.80.1007.0      90,112  Sqlboot.dll    IA-64 03-Mar-2005 22:13  2000.80.1007.0      32,256  Sqlctr80.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0     812,032  Sqldata.dll    IA-64 03-Mar-2005 22:13  2000.80.1007.0  13,845,504  Sqldmo.dll     IA-64 03-Mar-2005 22:13                      39,936  Sqldumper.exe  IA-64 03-Mar-2005 22:13  2000.80.1007.0     493,568  Sqlmaint.exe   IA-64 03-Mar-2005 22:13  2000.80.1007.0      23,040  Sqlmap70.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0     152,064  Sqlrepss.dll   IA-64 03-Mar-2005 22:14  2000.80.1007.0  25,271,808  Sqlservr.exe   IA-64 03-Mar-2005 22:13  2000.80.1007.0     616,960  Sqlsort.dll    IA-64 03-Mar-2005 22:13  2000.80.1007.0     120,320  Sqlvdi.dll     IA-64 03-Mar-2005 22:13  2000.80.1007.0     227,328  Sqsrvres.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0      53,760  Ssmslpcn.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0      59,904  Ssmsqlgc.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0     256,000  Ssnetlib.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0      20,992  Ssnmpn70.dll   IA-64 03-Mar-2005 22:14  2000.80.1007.0     430,080  Svrnetcn.dll   IA-64 03-Mar-2005 22:13  2000.80.1007.0     185,856  Svrnetcn.exe   IA-64 03-Mar-2005 22:14  2000.80.1007.0     183,296  Xplog70.dll    IA-64 03-Mar-2005 22:14  2000.80.1007.0     187,392  Xpweb70.dll    IA-64 03-Mar-2005 22:17                       5,065  Hotfix1.inf 31-Dec-2004 19:10  2000.80.962.0       57,904  Osql.exe       x86 31-Dec-2004 19:10  2000.80.760.0      269,824  Sqdedev.dll    IA-64 10-Feb-2005 18:46  2000.80.1007.0     146,432  Replres.rll 10-Feb-2005 18:17  2000.80.1007.0      19,968  Sqlevn70.rll Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.back to the top

<div class="workaround_section">

WORKAROUND
To work around this problem, use one or more of the following methods:
 * Use a clustered index instead of a non-clustered index.
 * Use client-side cursors.

back to the top

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.

back to the top

<div class="moreinformation_section">

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 it 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

back to the top

Keywords: kbbug kbfix kbqfe kbsqlserv2000presp4fix kbhotfixserver KB893172

-

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

© Microsoft Corporation. All rights reserved.