March 7, 2011 at 9:40 am
Hi, I want to test whether somethin is true (in this case that a date column has been updated with a date greater than some other date).
If false is returned I want the script to wait for five minutes and then test again.
This is to continually test at five minute intervals until the test returns true and then something else happens and the programme finishes.
Any ideas will be gratefully received.
Thank you all in advance,
Duncan
March 7, 2011 at 10:06 am
You could either use a job to run every 5min or a sproc with WAITFOR DELAY.
March 8, 2011 at 5:30 am
March 8, 2011 at 11:22 am
WHILE TestIsFalse
BEGIN
MoreLogicHere
WAITFOR DELAY '00:05:00'
END
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply