Microsoft KB Archive/167334

= FIX: Error Msg 201 Incorrectly Returned Twice =

Article ID: 167334

Article Last Modified on 10/3/2003

-

APPLIES TO


 * Microsoft SQL Server 6.5 Standard Edition

-



This article was previously published under Q167334



BUG #: 16359



SYMPTOMS
Running a stored procedure by incorrectly passing the DEFAULT parameter to it causes error Msg 201, "Procedure %s expects parameter %s, which was not supplied." to be returned twice instead of once. For example, the following query should return error Msg 201 once, but instead returns it twice:

use pubs go  CREATE PROC SP_OutParm (@outvar int output) As SELECT @outvar = 75 go  exec sp_outparm DEFAULT go



WORKAROUND
To work around this problem, upgrade to SQL Server 6.5 Service Pack 3.



STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.

Keywords: kberrmsg kbbug kbfix kbusage KB167334

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.