Help and Support

FIX: An access violation may occur when you try to run a Transact-SQL query in SQL Server 2000

Article ID:909089
Last Review:November 2, 2007
Revision:1.2
BUG #: 471331 (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.
On This Page

SUMMARY

This article describes the following about this hotfix release:
The issues that are fixed by the 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

Back to the top

SYMPTOMS

When you try to run a Transact-SQL query from an application in Microsoft SQL Server 2000, an access violation may occur. This problem occurs when the following conditions are true:
The Transact-SQL query contains a UNION operator.
The Transact-SQL query uses a parallel execution plan.
When this problem occurs, the following error message is logged in the SQL Server error log:
<Date> <Time> server Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1) ... 2005-08-31 12:21:15.46 spid54 DBCC TRACEON 2861, server process ID (SPID) 54.
<Date> <Time> spid57 Open of fault log C:\Program Files\Microsoft SQL Server\MSSQL\log\exception.log failed.
<Date> <Time> spid57 Open of fault log C:\Program Files\Microsoft SQL Server\MSSQL\log\exception.log failed.
<Date> <Time> spid57 Open of fault log C:\Program Files\Microsoft SQL Server\MSSQL\log\exception.log failed.
<Date> <Time> spid57 Using 'dbghelp.dll' version '4.0.5'
*Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL\log\SQLDump0920.txt
<Date> <Time> spid57 SqlDumpExceptionHandler: Process 5984 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
* ******************************************************************************* * * BEGIN STACK DUMP:
*
<Date> <Time> spid 57
*
* Exception Address = 0040560F
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred reading address 000000B8
* d b o . P I H D 14 00 64 00 62 00 6f 00 2e 00 50 00 49 00 48 00 44 00
* e l e t e _ L e v 65 00 6c 00 65 00 74 00 65 00 5f 00 4c 00 65 00 76 00
* e l 2 §2 2 65 00 6c 00 32 00 00 00 00 00 a7 32 00 09 04 00 01 32
* F49 § 2 a 03 00 46 34 39 00 00 a7 08 00 09 04 00 01 32 07 00 61
* cdgood 63 64 67 6f 6f 64
*
* -------------------------------------------------------------------------------
* Short Stack Dump * 0040560F Module(sqlservr+0000560F) * 00603FF5 Module(sqlservr+00203FF5) (SQLExit+0009C4FE)
* 0053577C Module(sqlservr+0013577C)
* 00420A14 Module(sqlservr+00020A14)
* 00874277 Module(sqlservr+00474277) (GetIMallocForMsxml+0007F6F7)
* 00875200 Module(sqlservr+00475200) (GetIMallocForMsxml+00080680)
* 00875611 Module(sqlservr+00475611) (GetIMallocForMsxml+00080A91)
* 005BB2F6 Module(sqlservr+001BB2F6) (SQLExit+000537FF)
* 005BAAB9 Module(sqlservr+001BAAB9) (SQLExit+00052FC2)
* 00866D25 Module(sqlservr+00466D25) (GetIMallocForMsxml+000721A5)
* 00868002 Module(sqlservr+00468002) (GetIMallocForMsxml+00073482)
* 00868B1E Module(sqlservr+00468B1E) (GetIMallocForMsxml+00073F9E)
* 0087E1CD Module(sqlservr+0047E1CD) (GetIMallocForMsxml+0008964D)
* 0087E422 Module(sqlservr+0047E422) (GetIMallocForMsxml+000898A2)
* 0055C692 Module(sqlservr+0015C692)
* 41075309 Module(ums+00005309) (ProcessWorkRequests+000002D9 Line 456+00000000)
* 41074978 Module(ums+00004978) (ThreadStartRoutine+00000098 Line 263+00000007)
* 7C34940F Module(MSVCR71+0000940F) (endthread+000000AA)
* 77E66063 Module(kernel32+00026063) (GetModuleFileNameA+000000EB)
* -------------------------------------------------------------------------------
*Dump thread - spid = 57, PSS = 0x530731f8, EC = 0x53073528
Additionally, the following events are logged in the Application log:

Event 1

Error 17055 <Date> <Time> MSSQLSERVER DUALP Server <ComputerName>\<Login> 17310 : SqlDumpExceptionHandler: Process 1780 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

Event 2

Information 17052 <Date> <Time> MSSQLSERVER DUALP Server N/A Error: 17883, Severity: 1, State: 0 Process 56:51 (c84) UMS Context 0x0029DF20 appears to be non-yielding on Scheduler 1

Back to the top

CAUSE

This problem occurs because operators are converted incorrectly in the compiled plan for an execution plan.

Back to the top

RESOLUTION

The installer does not install this hotfix correctly on x64-based systems. This installation issue occurs when the following conditions are true:
The system uses the Advanced Micro Devices (AMD) AMD64 processor architecture or the Intel Extended Memory 64 Technology (EM64T) processor architecture.

Note This issue does not occur on systems that use the Intel Itanium processor architecture.
The system is running a 64-bit version of the Microsoft Windows Server operating system.
The system is running a 32-bit version of SQL Server 2000.
We have corrected this installation issue in later builds of SQL Server 2000, starting with version 8.00.2244. When a customer who is running SQL Server 2000 on an x64-based system requests this hotfix, we will provide a build that includes this hotfix and that can be installed correctly on an x64-based system. The build that we provide will be version 8.00.2244 or a later version.

Back to the top

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 (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.

Prerequisites

Microsoft SQL Server 2000 Service Pack 4 (SP4)

For information about how to obtain SQL Server 2000 SP4, click the following article number to view the article in the Microsoft Knowledge Base:
290211 (http://support.microsoft.com/kb/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. However, the hotfix installation stops and then restarts the MSSQLSERVER service.

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.
SQL Server 2000 32-bit versions
File nameFile versionFile sizeDateTimePlatform
Dtsui.dll2000.80.2171.01,593,34404-Nov-200507:10x86
Impprov.dll2000.80.2171.0102,40004-Nov-200507:10x86
Mssdi98.dll8.11.50523.0239,10406-Jun-200522:46x86
Ntwdblib.dll2000.80.2171.0290,81604-Nov-200507:10x86
Odsole70.dll2000.80.2171.069,63204-Nov-200507:10x86
Pfclnt80.dll2000.80.2171.0430,08004-Nov-200507:10x86
Replprov.dll2000.80.2171.0237,56804-Nov-200507:10x86
Semexec.dll2000.80.2171.0856,06404-Nov-200507:10x86
Sqlagent.exe2000.80.2171.0323,58404-Nov-200505:27x86
Sqldiag.exe2000.80.2171.0118,78404-Nov-200506:09x86
Sqldmo.dll2000.80.2171.04,362,24004-Nov-200507:10x86
Sqlfth75.dll2000.80.2171.0102,40004-Nov-200505:33x86
Sqlservr.exe2000.80.2171.09,158,65604-Nov-200507:10x86
Sqlsort.dll2000.80.2171.0589,82404-Nov-200507:10x86
Stardds.dll2000.80.2171.0176,12804-Nov-200507:10x86
Svrnetcn.dll2000.80.2171.0110,59204-Nov-200507:10x86
Ums.dll2000.80.2171.035,32804-Nov-200507:10x86
Sqlevn70.rll2000.80.2171.045,05604-Nov-200507:10Not Applicable
SQL Server 2000 Itanium architecture version
File nameFile versionFile sizeDateTimePlatform
Impprov.dll2000.80.2171.0244,73604-Nov-200507:13IA-64
Mssdi98.dll8.11.50523.0758,78406-Jun-200522:46IA-64
Odsole70.dll2000.80.2171.0150,52804-Nov-200507:12IA-64
Pfclnt80.dll2000.80.2171.01,187,84004-Nov-200507:30IA-64
Replprov.dll2000.80.2171.0538,62404-Nov-200507:19IA-64
Sqlagent.exe2000.80.2171.01,061,37604-Nov-200507:37IA-64
Sqldiag.exe2000.80.2171.0334,33604-Nov-200507:32IA-64
Sqldmo.dll2000.80.2171.013,860,35204-Nov-200507:41IA-64
Sqlfth75.dll2000.80.2171.0246,78404-Nov-200507:15IA-64
Sqlservr.exe2000.80.2171.024,921,60004-Nov-200513:24IA-64
Sqlsort.dll2000.80.2171.0617,47204-Nov-200505:23IA-64
Svrnetcn.dll2000.80.2171.0427,52004-Nov-200507:27IA-64
Sqlevn70.rll2000.80.2171.035,32804-Nov-200513:24Not Applicable
Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.

Back to the top

WORKAROUND

To work around this problem, use one or both of the following methods:
Rewrite the Transact-SQL query, and modify the indexes that create a different execution plan.
Use the following query hint to turn off the parallel query.
OPTION (MAXDOP 1)

Back to the top

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Back to the top

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 (http://support.microsoft.com/kb/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 (http://support.microsoft.com/kb/824684/) Description of the standard terminology that is used to describe Microsoft software updates

Back to the top


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
Microsoft SQL Server 2000 Enterprise Edition 64-bit

Back to the top

Keywords: 
kbbug kbfix kbqfe kbhotfixserver KB909089

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.