Tag Archives: ExecuteNonQuery

executenonquery returns -1 on success

ExecuteNonQuery is suppose to return the number of rows inserted, updated or deleted but in my case it always return -1 even though the record is successfully added. Found out SET NOCOUNT OFF was missing my in my stored procedure. … Continue reading

Posted in Tutorials/Tips | Tagged , , , , , | Leave a comment