A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Hi @Sudip Bhatt ,
Thanks for your update.
Define @retryseconds as 600 seconsds means that on failure, or on crash, it would be retries automatically in 10 minutes. This was defined manually, you could change this value according to your own requirement.
I meant that the answerer defined the @retryseconds as 600 seconds which was 10 minutes. If you use this query or script in your own environment, you could define it yourself, like 800 seconds, 1000 seconds and so on.
set DueTime = dateadd(seconds, @retryseconds, DueTime)
DATEADD is a function which adds a specified number value (as a signed integer) to a specified datepart of an input date value, and then returns that modified value.
So above statement means adding 10 minutes to DueTime. For example, the DueTime is '2020-01-10 12:30:00', then after executing 'set DueTime = dateadd(seconds, @retryseconds, DueTime)', the DueTime will be updated as '2020-01-10 12:40:00'.
If you still have any concern or confuse, please let me know. Thanks.
Best regards
Melissa
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.