Stored procedure or function expects parameter which is not supplied

前端 未结 6 1401
不知归路
不知归路 2020-11-29 08:09

I am trying to insert data into a SQL Server database by calling a stored procedure, but I am getting the error

Procedure or function \'SHOWuser\' ex

6条回答
  •  独厮守ぢ
    2020-11-29 08:28

    In my case I got the error on output parameter even though I was setting it correctly on C# side I figured out I forgot to give a default value to output parameter on the stored procedure

    ALTER PROCEDURE [dbo].[test]
    (
                    @UserID int,
                    @ReturnValue int = 0 output --Previously I had @ReturnValue int output
    )
    

提交回复
热议问题