BUG: @@OPTIONS Does Not Revert to Pre-Procedure Setting (201416)



The information in this article applies to:

  • Microsoft SQL Server 6.5

This article was previously published under Q201416
BUG #: 17541 (SQLBUG_65)

SYMPTOMS

If the SET statement is used inside a stored procedure or trigger to set an option, it will revert back to its former setting properly after the stored procedure or trigger execution is completed; however, the @@OPTIONS global variable remains set.

For example, if you execute sp_helpdb, which sets NOCOUNT on, and check @@OPTIONS after that, the output will show 512 for NOCOUNT although the message stating how many rows were affected by the statement will be there.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 6.5.

Modification Type:MajorLast Reviewed:10/3/2003
Keywords:kbBug kbpending KB201416