FIX: The @@ERROR system function may return an incorrect value when you execute a Transact-SQL statement that uses a parallel execution plan in SQL Server 2000 32-bit or in SQL Server 2000 64-bit

Article translations Article translations
Article ID: 890925 - View products that this article applies to.
Bug #: 471094 (SQL Server 8.0)



Expand all | Collapse all

On This Page

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

When a Transact-SQL statement is executed by using a parallel execution plan, Microsoft SQL Server 2000 may not set the value of the @@ERROR system function correctly when the Transact-SQL statement fails or when SQL Server detects an error. If you examine the value that is returned by the @@ERROR system function immediately after the Transact-SQL statement executes, you will see that the @@ERROR function returned a zero value even though the query caused a non-zero error.

For example, the following Transact-SQL statement may still execute the DELETE statement even though the INSERT statement fails when it uses a parallel execution plan:
INSERT INTO table2 SELECT * FROM table1
IF ( @@ERROR = 0 )
  DELETE FROM table1
Note Parallel execution plans only occur on instances of SQL Server that are running on a computer that has two or more logical processors.

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 How to obtain the latest SQL Server 2000 service pack


RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for Microsoft 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

Hotfix information

Prerequisites

This hotfix requires SQL Server 2000 Service Pack 3 (SP3). For information about how to obtain SQL Server 2000 SP3, see the following article in the Microsoft Knowledge Base:
290211 How to obtain the latest SQL Server 2000 service pack
Additionally, this hotfix requires that you also have SQL Server 2000 hotfix build 2000.80.977 installed. For additional information about SQL Server 2000 Post SP3a hotfix build 2000.80.977, click the following article number to view the article in the Microsoft Knowledge Base:
888007 You receive a "The product does not have a prerequisite update installed" error message when you try to install a SQL Server 2000 post-SP3 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) 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
   Date         Time   Version            Size    File name
   ---------------------------------------------------------------------
   01-Dec-2004  19:57  2000.80.993.0     664,128  Autoplt.dll      
   01-Dec-2004  19:57  2000.80.993.0      78,400  Console.exe
   01-Dec-2004  19:57  2000.80.993.0     332,352  Ctasksui.dll
   01-Dec-2004  19:57  2000.80.993.0     315,968  Custtask.dll     
   01-Dec-2004  19:57  2000.80.993.0      33,340  Dbmslpcn.dll     
   08-Apr-2004  21:42                    786,432  Distmdl.ldf
   08-Apr-2004  21:42                  2,359,296  Distmdl.mdf
   30-Sep-2003  22:55                        180  Drop_repl_hotfix.sql
   01-Dec-2004  19:57  2000.80.993.0   1,905,216  Dtspkg.dll       
   01-Dec-2004  19:57  2000.80.993.0     528,960  Dtspump.dll      
   01-Dec-2004  19:57  2000.80.993.0   1,557,052  Dtsui.dll        
   01-Dec-2004  19:57  2000.80.993.0     639,552  Dtswiz.dll       
   30-Sep-2003  22:55                    747,927  Instdist.sql
   30-Sep-2003  22:55                      1,581  Inst_repl_hotfix.sql
   01-Dec-2004  19:57  2000.80.993.0     352,828  Isqlw.exe        
   01-Dec-2004  19:57  2000.80.993.0      82,492  Itwiz.exe        
   01-Dec-2004  19:57  2000.80.993.0      90,692  Msgprox.dll      
   29-Oct-2004  08:16  8.11.41022.0      226,304  Mssdi98.dll      
   01-Dec-2004  19:57  2000.80.993.0      62,024  Odsole70.dll     
   01-Dec-2004  19:58  2000.80.993.0      25,144  Opends60.dll     
   01-Dec-2004  19:57  2000.80.993.0      57,904  Osql.exe         
   01-Dec-2004  19:57  2000.80.993.0     279,104  Pfutil80.dll     
   30-Sep-2003  22:48                    550,780  Procsyst.sql
   08-Apr-2004  21:42                     12,305  Qfe469315.sql
   08-Apr-2004  21:42                     19,195  Qfe469571.sql
   27-Aug-2004  00:13                      5,157  Qfe472197.sql
   01-Dec-2004  19:57  2000.80.993.0     143,940  Qrdrsvc.exe      
   01-Dec-2004  18:49                  1,106,776  Replmerg.sql
   01-Dec-2004  19:57  2000.80.993.0     221,768  Replprov.dll     
   01-Dec-2004  19:57  2000.80.993.0     307,784  Replrec.dll      
   01-Dec-2004  18:56  2000.80.993.0     159,813  Replres.rll
   27-Aug-2004  00:13                  1,086,925  Replsys.sql
   30-Sep-2003  22:55                    986,603  Repltran.sql
   25-Nov-2004  00:04                         55  Repl_uninstall.sql
   01-Dec-2004  19:57  2000.80.993.0     287,304  Rinitcom.dll     
   01-Dec-2004  19:57  2000.80.993.0      78,416  Sdiclnt.dll      
   01-Dec-2004  19:57  2000.80.993.0      66,112  Semmap.dll       
   01-Dec-2004  19:57  2000.80.993.0      57,916  Semnt.dll        
   01-Dec-2004  19:57  2000.80.993.0     492,096  Semobj.dll       
   01-Dec-2004  19:20  2000.80.993.0     172,032  Semobj.rll
   01-Dec-2004  19:57  2000.80.993.0      53,832  Snapshot.exe     
   30-Sep-2003  22:48                    117,834  Sp3_serv_uni.sql
   01-Dec-2004  19:57  2000.80.993.0      28,672  Sqlagent.dll     
   01-Dec-2004  19:57  2000.80.993.0     311,872  Sqlagent.exe     
   01-Dec-2004  19:57  2000.80.993.0     168,001  Sqlakw32.dll     
   01-Dec-2004  19:57  2000.80.993.0      33,344  Sqlctr80.dll     
   01-Dec-2004  19:57  2000.80.993.0   4,215,360  Sqldmo.dll       
   01-Dec-2004  19:57                     25,172  Sqldumper.exe    
   01-Dec-2004  18:48  2000.80.993.0      28,672  Sqlevn70.rll
   01-Dec-2004  19:57  2000.80.993.0     156,224  Sqlmaint.exe     
   01-Dec-2004  19:57  2000.80.993.0     180,792  Sqlmap70.dll     
   01-Dec-2004  19:57  2000.80.993.0     188,992  Sqlmmc.dll
   01-Dec-2004  19:12  2000.80.993.0     479,232  Sqlmmc.rll
   01-Dec-2004  19:57  2000.80.993.0     401,984  Sqlqry.dll
   01-Dec-2004  19:57  2000.80.993.0      57,920  Sqlrepss.dll     
   01-Dec-2004  19:58  2000.80.993.0   7,716,945  Sqlservr.exe     
   01-Dec-2004  19:57  2000.80.993.0     590,396  Sqlsort.dll      
   01-Dec-2004  19:57  2000.80.993.0      45,644  Sqlvdi.dll       
   01-Dec-2004  19:58  2000.80.993.0     106,588  Sqsrvres.dll
   01-Dec-2004  19:58  2000.80.993.0      33,340  Ssmsgnet.dll     
   01-Dec-2004  19:58  2000.80.993.0      33,340  Ssmslpcn.dll     
   01-Dec-2004  19:58  2000.80.993.0      33,340  Ssmsqlgc.dll     
   01-Dec-2004  19:58  2000.80.993.0      82,492  Ssnetlib.dll     
   01-Dec-2004  19:58  2000.80.993.0      25,148  Ssnmpn70.dll     
   01-Dec-2004  19:58  2000.80.993.0     123,456  Stardds.dll
   01-Dec-2004  19:58  2000.80.993.0     158,240  Svrnetcn.dll     
   01-Dec-2004  19:57  2000.80.993.0      76,416  Svrnetcn.exe     
   01-Dec-2004  19:58  2000.80.993.0      49,228  Ums.dll          
   01-Dec-2004  19:58  2000.80.993.0      74,304  Xplog70.dll      
   01-Dec-2004  19:58  2000.80.993.0      98,872  Xpweb70.dll
SQL Server 2000 64-bit version
   Date         Time   Version            Size    File name        Platform
   ------------------------------------------------------------------------
   02-Dec-2004  03:15  2000.80.993.0      56,832  Dbmslpcn.dll     IA-64
   02-Dec-2004  03:14  2000.80.993.0     528,960  Dtspump.dll
   02-Dec-2004  03:15  2000.80.993.0     185,856  Msgprox.dll
   29-Oct-2004  08:16  8.11.41022.0      742,912  Mssdi98.dll      IA-64
   02-Dec-2004  03:15  2000.80.993.0     151,040  Odsole70.dll     IA-64
   02-Dec-2004  03:16  2000.80.993.0      27,136  Opends60.dll     IA-64
   01-Dec-2004  20:09                     19,880  Opends60.lib
   02-Dec-2004  03:15  2000.80.993.0     148,992  Osql.exe         IA-64
   02-Dec-2004  03:15  2000.80.993.0     353,280  Qrdrsvc.exe
   02-Dec-2004  03:15  2000.80.993.0     534,528  Replprov.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0     769,024  Replrec.dll
   02-Dec-2004  03:15  2000.80.993.0     650,240  Rinitcom.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0     160,768  Semmap.dll       IA-64
   02-Dec-2004  03:15  2000.80.993.0     132,608  Semnt.dll        IA-64
   02-Dec-2004  03:15  2000.80.993.0      88,576  Snapshot.exe     IA-64
   02-Dec-2004  03:14  2000.80.993.0      10,240  Sqlagent.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0   1,055,232  Sqlagent.exe
   02-Dec-2004  03:15  2000.80.993.0      90,112  Sqlboot.dll      IA-64
   02-Dec-2004  03:15  2000.80.993.0      32,256  Sqlctr80.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0     812,032  Sqldata.dll      IA-64
   02-Dec-2004  03:15  2000.80.993.0  13,845,504  Sqldmo.dll
   02-Dec-2004  03:15                     39,936  Sqldumper.exe    IA-64
   02-Dec-2004  03:15  2000.80.993.0     493,568  Sqlmaint.exe     IA-64
   02-Dec-2004  03:15  2000.80.993.0      23,040  Sqlmap70.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0     152,064  Sqlrepss.dll     IA-64
   02-Dec-2004  03:16  2000.80.993.0  25,255,936  Sqlservr.exe     IA-64
   02-Dec-2004  03:15  2000.80.993.0     616,960  Sqlsort.dll      IA-64
   02-Dec-2004  03:15  2000.80.993.0     120,320  Sqlvdi.dll       IA-64
   02-Dec-2004  03:15  2000.80.993.0     227,328  Sqsrvres.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0      53,760  Ssmslpcn.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0      59,904  Ssmsqlgc.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0     256,000  Ssnetlib.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0      20,992  Ssnmpn70.dll     IA-64
   02-Dec-2004  03:15  2000.80.993.0     430,080  Svrnetcn.dll
   02-Dec-2004  03:15  2000.80.993.0     185,856  Svrnetcn.exe     IA-64
   02-Dec-2004  03:15  2000.80.993.0     183,296  Xplog70.dll
   02-Dec-2004  03:15  2000.80.993.0     187,392  Xpweb70.dll      IA-64
   21-Jul-2004  17:38  2000.80.962.0      57,904  Osql.exe         x86
   30-Sep-2003  22:23  2000.80.760.0     269,824  Sqdedev.dll      IA-64
   01-Dec-2004  20:22  2000.80.993.0     146,432  Replres.rll
   01-Dec-2004  20:10  2000.80.993.0      19,968  Sqlevn70.rll
Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.

WORKAROUND

To work around this problem, use one of the following methods:
  • Use a query hint

    Add the query hint OPTION (MAXDOP 1) to prevent the SELECT statement from using a parallel execution plan.
  • Use the sp_configure system stored procedure

    Run the sp_configure system stored procedure to set the max degree of parallelism option to 1 for the instance of SQL Server. To set the max degree of parallelism option, run the following Transact-SQL statement on the instance of SQL Server that you want to change:
    exec sp_configure 'max degree of parallelism',1
    GO
    RECONFIGURE
    GO

    NOTE We do not recommend this because it may affect performance.

STATUS

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

This problem was first corrected in Microsoft SQL Server 2000 Service Pack 4.

MORE INFORMATION

For additional information about the naming schema for Microsoft 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 additional information about the terminology that Microsoft uses when correcting 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

Properties

Article ID: 890925 - Last Review: November 2, 2007 - Revision: 2.3
APPLIES TO
  • Microsoft SQL Server 2000 Developer Edition
  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 2000 Enterprise Edition
  • Microsoft SQL Server 2000 Personal Edition
  • Microsoft SQL Server 2000, Workgroup Edition
  • Microsoft SQL Server 2000 Desktop Engine (Windows)
  • Microsoft SQL Server 2000 Enterprise Edition 64-bit
Keywords: 
kbquery kbsqlserv2000presp4fix kbbug kbfix kbhotfixserver kbqfe KB890925

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com