c#: ExecuteNonQuery() returns -1

后端 未结 4 1609
-上瘾入骨i
-上瘾入骨i 2021-01-08 00:50

Ive used this method before to return the amount of rows changed. I am it to run an insert method, the insert runs fine in the stored procedure, but the return value from th

4条回答
  •  耶瑟儿~
    2021-01-08 01:13

    What value are you returning from your stored procedure? Can you show the code for your stored procedure. You probably need to edit your stored procedure to return the required value, OR, your stored procedure is returning a -1 either specifically or the variable that the stored procedure returns has -1 as its value.

提交回复
热议问题