In SQL Server, you can use the WAITFOR statement to delay the execution of a batch, stored procedure, or transaction.
It works similar to MySQL‘s sleep() function.
Actually, it’s probably more like a combination of Postgres‘s three “sleep” functions: pg_sleep(), pg_sleep_for(), and pg_sleep_until().
I say this, because SQL Server’s WAITFOR statement gives you the option of specifying either a time delay, or an actual fixed time before execution continues.