I am executing an update command on a database and am wondering if this command finishes before it runs the next function or is it running the next function seconds after it starts the running the command. In other words I need the update command to finish before the next function starts.
cmd.ExecuteNonQuery();
nextfunction();
cmd.ExecuteNonQuery();
nextfunction();