all groups > sql server dts > april 2007 >
You're in the

sql server dts

group:

sleep function in DTS


sleep function in DTS grey
4/26/2007 12:00:00 AM
sql server dts: i am writing DTS in sql server 2000. i have to write the delay, such as
delay for 1 minutes before taking to next step. i have to use WScript.sleep
(60000) to do the delay, but it prompted the error.

Object required: 'Wscript'

so how to do the delay in sql server 2000 DTS??

Re: sleep function in DTS Russell Fields
4/27/2007 3:56:17 PM
If you want to do it in script, make sure that your DTS package has access
to the wscript.exe (or maybe the cscript.exe instead) so that your scripting
step will run.

In TSQL it is also possible to issue a wait using:
WAITFOR DELAY '00:01:00'

RLF

[quoted text, click to view]

AddThis Social Bookmark Button