1) If your procedure is running these queries, you don't need to check to see if they run, the sequential nature of the procedure will take care of that.
2) If a user is running these queries, you can create an events table that contains the name of the query and a date/time stamp of the time the query ran... and for the next query you can add criteria that ensures the preceding query has been run in the past x seconds/minutes/hours.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.