SQL Query says a parameter is not supplied, but is added to the SqlCommand object

后端 未结 4 645
南旧
南旧 2020-12-17 09:24

I have a stored procedure that has a parameter called UserName and in my code behind I have a SqlCommand object that I add the parameters to with the Add method. But for som

4条回答
  •  北海茫月
    2020-12-17 09:49

    Try making sure that the command type is set to stored procedure.

    mycommand.CommandType = System.Data.CommandType.StoredProcedure;
    

提交回复
热议问题