FIX: Error Msg 201 Incorrectly Returned Twice

ID: Q167334


The information in this article applies to:
  • Microsoft SQL Server version 6.5

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 kbusage SSrvGen kbbug6.50
Version : 6.5
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: April 9, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.