FIX: SQL RPC That Raises Error Will Mask @@ERROR with Msg 7221 (275901)



The information in this article applies to:

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

This article was previously published under Q275901
BUG #: 58433 (SQLBUG_70)
BUG #: 236400 (SHILOH_bugs)

SYMPTOMS

If a remote TSQL procedure raises an error with a severity greater than 10, the caller of the procedure will see 7221 for the value of @@ERROR after the remote procedure is executed, instead of the original error.

RESOLUTION

SQL Server 2000

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

SQL Server 7.0

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

301511 INF: How to Obtain the Latest SQL Server 7.0 Service Pack

Hotfix

NOTE: The following hotfix was created prior to Microsoft SQL Server 7.0 Service Pack 3.

The English version of this fix should have the following file attributes or later:
   Version      File name     Platform
   ---------------------------------------------------------
   7.00.910     S70910i.exe   Intel
                S70910a.exe   Alpha
				
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the above files may also contain additional files.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

SQL Server 2000

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

SQL Server 7.0

This problem was first corrected in SQL Server 7.0 Service Pack 3.

Modification Type:MajorLast Reviewed:10/31/2003
Keywords:kbBug kbfix kbQFE kbSQLServ2000sp1fix KB275901