Created
April 7, 2022 00:44
-
-
Save MarkPryceMaherMSFT/ead8807dd54807aea91e4f1c1188bfc2 to your computer and use it in GitHub Desktop.
Wait for it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create PROC [dbo].[wait_for] @seconds [bigint] AS | |
begin | |
declare @quit bit = 0; | |
declare @ConpareDateTime datetime2; | |
set @ConpareDateTime = dateadd(s, @seconds, getdate() ) | |
while(@quit=0) | |
begin | |
if getdate() > @ConpareDateTime | |
set @quit = 1; | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment