How does one cause a delay in execution for a specified number of seconds?
This doesn't do it:
WAITFOR DELAY '00:02';
What is the correct format?
The documentation for WAITFOR() doesn't explicitly lay out the required string format.
WAITFOR()
This will wait for 2 seconds:
WAITFOR DELAY '00:00:02';
The format is hh:mi:ss.mmm.
hh:mi:ss.mmm
2.1m questions
2.1m answers
60 comments
57.0k users