c#: ExecuteNonQuery() returns -1

后端 未结 4 1616
-上瘾入骨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:02

    If you use this method to call a store procedure that perform UPDATE/INSERT in a table the method return -1 if the stored procudere has the SET NOCOUNT at ON value.

    --source

提交回复
热议问题