Help and Support

Article ID: 894254 - Last Review: November 2, 2007 - Revision: 2.3

FIX: A complex query that includes a UNION ALL operator and an EXISTS clause may fail in SQL Server 2000

Hotfix download is availableHotfix Download Available
View and request hotfix downloads
Bug #: 473733 SQL Server 8.0

On This Page

Expand all | Collapse all

Article contents

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

SYMPTOMS

In Microsoft SQL Server 2000, when you run a complex query that includes a UNION ALL operator and an EXISTS clause, the query may fail. You may receive an error message that is similar to the following:
ODBC: Msg 0, Level 19, State 1
SqlDumpExceptionHandler: Process 52 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

Connection Broken
For a list of previous hotfixes, see the "Microsoft SQL Server 2000 post-Service Pack 3 or Microsoft SQL Server 2000 post-Service Pack 3a hotfixes" section in the following Microsoft Knowledge Base article:
290211  (http://support.microsoft.com/kb/290211/ ) How to obtain the latest SQL Server 2000 service pack

CAUSE

This issue occurs because SQL Server 2000 does not correctly determine the properties for correlated predicates after the correlated predicates are remapped.

RESOLUTION

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have Microsoft SQL Server 2000 Service Pack 3a and SQL Server 2000 hotfix build 1007 installed to apply this hotfix.

Restart information

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

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
   --------------------------------------------------------------------
   16-Feb-2005  20:09  2000.80.1009.0     664,128  Autoplt.dll      
   16-Feb-2005  20:09  2000.80.1009.0      78,400  Console.exe      
   16-Feb-2005  20:09  2000.80.1009.0     332,352  Ctasksui.dll     
   16-Feb-2005  20:09  2000.80.1009.0     315,968  Custtask.dll     
   16-Feb-2005  20:09  2000.80.1009.0      33,340  Dbmslpcn.dll     
   31-Dec-2004  19:31                     786,432  Distmdl.ldf
   31-Dec-2004  19:31                   2,359,296  Distmdl.mdf
   31-Dec-2004  19:31                         180  Drop_repl_hotfix.sql
   16-Feb-2005  20:09  2000.80.1009.0   1,905,216  Dtspkg.dll       
   16-Feb-2005  20:09  2000.80.1009.0     528,960  Dtspump.dll      
   16-Feb-2005  20:09  2000.80.1009.0   1,557,052  Dtsui.dll        
   16-Feb-2005  20:09  2000.80.1009.0     639,552  Dtswiz.dll       
   31-Dec-2004  19:31                     747,927  Instdist.sql
   31-Dec-2004  19:31                       1,581  Inst_repl_hotfix.sql
   16-Feb-2005  20:09  2000.80.1009.0     352,828  Isqlw.exe        
   16-Feb-2005  20:09  2000.80.1009.0      82,492  Itwiz.exe        
   16-Feb-2005  20:09  2000.80.1009.0      90,692  Msgprox.dll      
   31-Dec-2004  19:16  8.11.41022.0       226,304  Mssdi98.dll      
   16-Feb-2005  20:09  2000.80.1009.0      62,024  Odsole70.dll     
   16-Feb-2005  20:09  2000.80.1009.0      25,144  Opends60.dll     
   16-Feb-2005  20:12                      82,944  Opends60.pdb
   16-Feb-2005  20:09  2000.80.1009.0      57,904  Osql.exe         
   16-Feb-2005  20:09  2000.80.1009.0     279,104  Pfutil80.dll     
   01-Feb-2005  01:46                     551,012  Procsyst.sql
   31-Dec-2004  19:31                      12,305  Qfe469315.sql
   31-Dec-2004  19:31                      19,195  Qfe469571.sql
   31-Dec-2004  19:31                       5,157  Qfe472197.sql
   16-Feb-2005  20:09  2000.80.1009.0     143,940  Qrdrsvc.exe      
   16-Feb-2005  19:03                   1,136,160  Replmerg.sql
   16-Feb-2005  20:09  2000.80.1009.0     221,768  Replprov.dll     
   16-Feb-2005  20:09  2000.80.1009.0     307,784  Replrec.dll      
   16-Feb-2005  19:09  2000.80.1009.0     159,813  Replres.rll
   31-Dec-2004  19:31                   1,088,240  Replsys.sql
   14-Jan-2005  01:05                     986,746  Repltran.sql
   31-Dec-2004  18:49                          55  Repl_uninstall.sql
   16-Feb-2005  20:09  2000.80.1009.0     287,304  Rinitcom.dll     
   16-Feb-2005  20:09  2000.80.1009.0      78,416  Sdiclnt.dll      
   16-Feb-2005  20:09  2000.80.1009.0      66,112  Semmap.dll       
   16-Feb-2005  20:09  2000.80.1009.0      57,916  Semnt.dll        
   16-Feb-2005  20:09  2000.80.1009.0     492,096  Semobj.dll       
   16-Feb-2005  19:37  2000.80.1009.0     172,032  Semobj.rll
   16-Feb-2005  20:09  2000.80.1009.0      53,832  Snapshot.exe     
   01-Feb-2005  01:46                     125,540  Sp3_serv_uni.sql
   16-Feb-2005  20:09  2000.80.1009.0      28,672  Sqlagent.dll     
   16-Feb-2005  20:09  2000.80.1009.0     311,872  Sqlagent.exe     
   16-Feb-2005  20:09  2000.80.1009.0     168,001  Sqlakw32.dll     
   16-Feb-2005  20:09  2000.80.1009.0      33,344  Sqlctr80.dll     
   16-Feb-2005  20:09  2000.80.1009.0   4,215,360  Sqldmo.dll       
   16-Feb-2005  20:09                      25,172  Sqldumper.exe    
   16-Feb-2005  19:02  2000.80.1009.0      28,672  Sqlevn70.rll
   16-Feb-2005  20:09  2000.80.1009.0     156,224  Sqlmaint.exe     
   16-Feb-2005  20:09  2000.80.1009.0     180,792  Sqlmap70.dll     
   16-Feb-2005  20:09  2000.80.1009.0     188,992  Sqlmmc.dll       
   16-Feb-2005  19:32  2000.80.1009.0     479,232  Sqlmmc.rll
   16-Feb-2005  20:09  2000.80.1009.0     401,984  Sqlqry.dll       
   16-Feb-2005  20:09  2000.80.1009.0      57,920  Sqlrepss.dll     
   16-Feb-2005  20:09  2000.80.1009.0   7,721,041  Sqlservr.exe     
   16-Feb-2005  20:12                  13,345,792  Sqlservr.pdb
   16-Feb-2005  20:09  2000.80.1009.0     590,396  Sqlsort.dll      
   16-Feb-2005  20:09  2000.80.1009.0      45,644  Sqlvdi.dll       
   16-Feb-2005  20:09  2000.80.1009.0     106,588  Sqsrvres.dll     
   16-Feb-2005  20:09  2000.80.1009.0      33,340  Ssmsgnet.dll     
   16-Feb-2005  20:09  2000.80.1009.0      33,340  Ssmslpcn.dll     
   16-Feb-2005  20:09  2000.80.1009.0      33,340  Ssmsqlgc.dll     
   16-Feb-2005  20:09  2000.80.1009.0      82,492  Ssnetlib.dll     
   16-Feb-2005  20:09  2000.80.1009.0      25,148  Ssnmpn70.dll     
   16-Feb-2005  20:09  2000.80.1009.0     123,456  Stardds.dll      
   16-Feb-2005  20:09  2000.80.1009.0     158,240  Svrnetcn.dll     
   16-Feb-2005  20:09  2000.80.1009.0      76,416  Svrnetcn.exe     
   16-Feb-2005  20:09  2000.80.1009.0      49,228  Ums.dll          
   16-Feb-2005  20:12                     132,096  Ums.pdb
   16-Feb-2005  20:09  2000.80.1009.0      74,304  Xplog70.dll      
   16-Feb-2005  20:09  2000.80.1009.0      98,872  Xpweb70.dll 
Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" 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  (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 it 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

Stack information


eax=00000000 ebx=1a3fa8e8 ecx=00000000 edx=0332c0d8 esi=00000034 edi=00000001
eip=004526c7 esp=0332c0a4 ebp=0332c0ac iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00010202
sqlservr!CBitSet::FGetNext+0x1b:
004526c7 857c8e08 test [esi+ecx*4+0x8],edi ds:0023:0000003c=????????

ExceptionAddress: 004526c7 (sqlservr!CBitSet::FGetNext+0x0000001b)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 0000003c
Attempt to read from address 0000003c



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
Keywords: 
kbautohotfix kbsqlserv2000fix kbbug kbfix kbhotfixserver kbqfe KB894254

Article Translations

 

Related Support Centers