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
1.4m articles
1.4m replys
5 comments
57.0k users