Sunday, July 21, 2013

how to delay a command in sql server

Some times we need to delay a command before execution until the preferred time in sql

Query

To delay a command until 10 AM

WAITFOR TIME '10:00:00'
SELECT GETDATE()

No comments:

Post a Comment