Stored procedure or function expects parameter which is not supplied

前端 未结 6 1414
不知归路
不知归路 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:34

    in my case, I was passing all the parameters but one of the parameter my code was passing a null value for string.

    Eg: cmd.Parameters.AddWithValue("@userName", userName);

    in the above case, if the data type of userName is string, I was passing userName as null.

提交回复
热议问题