locked
executenonquery RRS feed

  • Question

  • User-797751191 posted

    Hi

     What does the below code does. What values ExecuteNonQuery returns

      using (SqlCommand cmdApprove = new SqlCommand("Update test SET  Status = 'A' where [Invoice No] = @DocNo", con))
    {
    cmdApprove.CommandType = CommandType.Text;
    cmdApprove.Parameters.AddWithValue("@DocNo", No);
    cmdApprove.ExecuteNonQuery();

    }

    Thanks

    Monday, July 8, 2019 3:23 PM

Answers