dbTalk Databases Forums  

setting a alert on time out of a schedulted dts package

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


Discuss setting a alert on time out of a schedulted dts package in the microsoft.public.sqlserver.dts forum.



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

Default setting a alert on time out of a schedulted dts package - 05-17-2005 , 06:03 AM






what i want to do is a follows:

1. schedule a DTS package with timeout.but should not terminate the job.
2. when it timesout i want to send out a alert that the job has timed out

can anyone guide me on how to do this.

thanks in advance

kamal

Reply With Quote
  #2  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: setting a alert on time out of a schedulted dts package - 05-17-2005 , 10:00 AM






Hi Kamal,

kamal wrote:
Quote:
what i want to do is a follows:

1. schedule a DTS package with timeout.but should not terminate the
job.
2. when it timesout i want to send out a alert that the job has timed
out
when you define a job for the DTS package and execute it through this job only, you can simply regularly check the job runtime with
an additional job. See sp_help_job for details on the job info you get.

The only other way to do this I know is with an additional workflow inside of the DTS package.
You pass the allowed runtime to the package via global variable or define it statically and then check wether the last step of the
main workflow has finished inside of the desired time.

Just loop between a SQLTask with "WaitFor Delay" statement to avoid constant polling and an activeX task which will loop back when
main threat is still running, finish when main threat has finished to complete package, or send mail when package timed out.
Sending can be done with CDO inside of the activeX task.
To see how looping works and how you can check execution status go to www.sqldts.com look for workflows and also the simple looping
example in the download section.

This would be an advanced feature, so you have to try a little bit ;-)

Helge



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

Default Re: setting a alert on time out of a schedulted dts package - 05-18-2005 , 11:43 AM



thanks it worked just fine

"Helge C. Rutz" wrote:

Quote:
Hi Kamal,

kamal wrote:
what i want to do is a follows:

1. schedule a DTS package with timeout.but should not terminate the
job.
2. when it timesout i want to send out a alert that the job has timed
out
when you define a job for the DTS package and execute it through this job only, you can simply regularly check the job runtime with
an additional job. See sp_help_job for details on the job info you get.

The only other way to do this I know is with an additional workflow inside of the DTS package.
You pass the allowed runtime to the package via global variable or define it statically and then check wether the last step of the
main workflow has finished inside of the desired time.

Just loop between a SQLTask with "WaitFor Delay" statement to avoid constant polling and an activeX task which will loop back when
main threat is still running, finish when main threat has finished to complete package, or send mail when package timed out.
Sending can be done with CDO inside of the activeX task.
To see how looping works and how you can check execution status go to www.sqldts.com look for workflows and also the simple looping
example in the download section.

This would be an advanced feature, so you have to try a little bit ;-)

Helge



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.