I have recently realized that some individual queries placed in a single schedule do not execute sequentially. I was wondering how I can ensure that these queries run only after the previous query has completed.
I have recently realized that some individual queries placed in a single schedule do not execute sequentially. I was wondering how I can ensure that these queries run only after the previous query has completed.
Share Improve this question asked Mar 18 at 6:43 Ryan ChandraRyan Chandra 1341 silver badge10 bronze badges1 Answer
Reset to default 1You could write an array of queries, Iterate over that array and execute each one using EXECUTE IMMEDIATE command. Here's a sample.