dbTalk Databases Forums  

Sleep() in JScript under DTS.

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Sleep() in JScript under DTS. in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike
 
Posts: n/a

Default Sleep() in JScript under DTS. - 07-22-2005 , 10:45 AM






Hello!

Is there any way to pause execution (Sleep) in java script
under DTS? WScript.Sleep() doesn't work. As I understand
sure workaround is to build my own activex with one method
Sleep(), but may be there is some simpler method.

Any ideas?

Thank you,
Yaroslav


Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Sleep() in JScript under DTS. - 07-25-2005 , 09:31 AM






Mike,

You could use Sleep.exe from Windows SDK executing it in Execute Process
task. My favorite one is using Execute SQL task with WAITFOR statement, but
that is when SQL Server is available.

Ilya

"Mike" <yaroslav.levchenko (AT) gmail (DOT) com> wrote

Quote:
Hello!

Is there any way to pause execution (Sleep) in java script
under DTS? WScript.Sleep() doesn't work. As I understand
sure workaround is to build my own activex with one method
Sleep(), but may be there is some simpler method.

Any ideas?

Thank you,
Yaroslav




Reply With Quote
  #3  
Old   
Mike
 
Posts: n/a

Default Re: Sleep() in JScript under DTS. - 07-27-2005 , 11:21 PM



Ilya,

Thank you! WAITFOR worked like a charm!


Mike


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.