Sleep Command in T-SQL?

后端 未结 4 638
情话喂你
情话喂你 2020-12-04 05:44

Is there to way write a T-SQL command to just make it sleep for a period of time? I am writing a web service asynchronously and I want to be able to run some tests to see i

4条回答
  •  醉酒成梦
    2020-12-04 06:16

    You can also "WAITFOR" a "TIME":

        RAISERROR('Im about to wait for a certain time...', 0, 1) WITH NOWAIT
        WAITFOR TIME '16:43:30.000'
        RAISERROR('I waited!', 0, 1) WITH NOWAIT
    

提交回复
热议问题