Procedure expects parameter which was not supplied

后端 未结 12 1495

I\'m getting the error when accessing a Stored Procedure in SQL Server

Server Error in \'/\' Application.
Procedure or function \'ColumnSeek\' expects parame         


        
12条回答
  •  不知归路
    2020-12-02 18:42

    If Template is not set (i.e. ==null), this error will be raised, too.

    More comments:

    If you know the parameter value by the time you add parameters, you can also use AddWithValue

    The EXEC is not required. You can reference the @template parameter in the SELECT directly.

提交回复
热议问题