FIX: SQL Server Error Message 6002 Is Returned with an Incorrect Severity (301642)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)
  • Microsoft SQL Server 7.0

This article was previously published under Q301642
BUG #: 354339 (SHILOH_BUGS)
BUG #: 354511 (SHILOH_BUGS)
BUG #: 101741 (SQLBUG_70)

SYMPTOMS

While SQL Server is in the process of shutting down, if a user without sysadmin privileges with an already existing connection executes a query, the following error message is returned to the client application:
SHUTDOWN is in progress. Log off.
This is SQL Server message 6002, but it is returned with a severity of 10, which is incorrect.

RESOLUTION

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

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

Hotfix

NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 2.

The English version of this fix should have the following file attributes or later:
   File name    Platform
   -----------------------------------------------------------------
   s80300i.exe  x86 - SQL Server 2000 original release fix
   s80404i.exe  x86 - SQL Server Service Pack 1 fix
				
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the above files may also contain additional files.

WORKAROUND

Modify the error handling code in the client application to check for message 6002 and treat it as a severity 16 error.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

MORE INFORMATION

Because the error message is returned with an incorrect severity, client applications written to handle errors based on the severity will not handle this message correctly and may continue to attempt activity against the SQL Server server.

Modification Type:MajorLast Reviewed:10/29/2003
Keywords:kbBug kbfix KB301642