This is my (rough) code (DAL):
int i; // Some other declarations SqlCommand myCmdObject = new SqlCommand(\"some query\"); conn.open(); i = myCmdObject.Exec
Could you post the exact query? The ExecuteNonQuery method returns the @@ROWCOUNT Sql Server variable what ever it is after the last query has executed is what the ExecuteNonQuery method returns.
ExecuteNonQuery
@@ROWCOUNT