Re: setting a alert on time out of a schedulted dts package

Tech-Archive recommends: Speed Up your PC by fixing your registry



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

.



Relevant Pages

  • Re: importing xls file - different attempt - one result....
    ... Why not use the wizard to create the exact DTS package you need to import XLS files? ... Dim oConnection as DTS.Connection2 ... Dim oColumn As DTS.Column ...
    (microsoft.public.sqlserver.dts)
  • DTS Package remotely in batch file
    ... the package on the server. ... ECHO The execution of the DTS package has succeeded. ... DTSRun: Executing... ... Help file: sqldts80.hlp ...
    (microsoft.public.sqlserver.dts)
  • Re: DTSRun and Batch file
    ... >>refreshed via DTS package, including an Analysis Services task to ... Analysis Services on the client machine. ... So the DTS package is running ... suggesting about implementing a web form or Win form. ...
    (microsoft.public.sqlserver.dts)
  • Re: DTSRun and Batch file
    ... >>refreshed via DTS package, including an Analysis Services task to ... Analysis Services on the client machine. ... So the DTS package is running ... suggesting about implementing a web form or Win form. ...
    (microsoft.public.sqlserver.dts)
  • RE: Resuming a failed DTS package - Proper ETL design with DTS package
    ... Somehow I'm supposed to be able to rollback and entire DTS package if it ... You use database transactions to bind multiple updates into a single atomic ...
    (microsoft.public.sqlserver.dts)