dbTalk Databases Forums  

Sending mail on Package Failure

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


Discuss Sending mail on Package Failure in the microsoft.public.sqlserver.dts forum.



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

Default Sending mail on Package Failure - 03-10-2005 , 01:06 AM






I'm new to DTS and I would like to know how to send an emai
notification, that is, execute an activex script if any of the task
in the package fails

I foun
"Fail Package on first error

but how do I execute VB script on this

If this has already been answered can someone point me to tha
thread

Thank


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default RE: Sending mail on Package Failure - 03-10-2005 , 02:35 AM






OK

The easiest way would be to use the SendMail task and have an On failure
contraint from each of your tasks to their own SendMail task.

Your text suggests Tasks failing but your subject line suggests package.



Have a look at our section here

www.sqldts.com/default.aspx?104



"anotherfinemess" wrote:

Quote:
I'm new to DTS and I would like to know how to send an email
notification, that is, execute an activex script if any of the tasks
in the package fails.

I found
"Fail Package on first error"

but how do I execute VB script on this?

If this has already been answered can someone point me to that
thread?

Thanks



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

Default Re: RE: Sending mail on Package Failure - 03-12-2005 , 01:06 AM



Quote:
Allan Mitchellwrote
O

The easiest way would be to use the SendMail task and have an O
failure
contraint from each of your tasks to their own SendMail task

Your text suggests Tasks failing but your subject line suggest
package



Have a look at our section her

www.sqldts.com/default.aspx?10



"anotherfinemess" wrote

I'm new to DTS and I would like to know how to send an emai
notification, that is, execute an activex script if any of th
task
in the package fails

I foun
"Fail Package on first error

but how do I execute VB script on this

If this has already been answered can someone point me to tha
thread

Thank

[/quote:c19133ed65
I want to send a mail if any one of the step fails in a package. I d
not want to put an "on failure" for each and every step



Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: RE: Sending mail on Package Failure - 03-12-2005 , 01:30 AM



And there lies the problem, doing it within the package is messy. I
would call the package through code and check the steps afterwards. You
then send only 1 mail

Execute a package from Visual Basic (VB)
(http://www.sqldts.com/default.aspx?208,1)

Execute a package from a package
(http://www.sqldts.com/default.aspx?215)




"anotherfinemess" <crusadertotherescue (AT) gmail-dot-com (DOT) no-spam.invalid>
wrote in message news:crusadertotherescue (AT) gmail-dot-com (DOT) no-spam.invalid:

Quote:
Allan Mitchellwrote:
OK

The easiest way would be to use the SendMail task and have an On
failure
contraint from each of your tasks to their own SendMail task.

Your text suggests Tasks failing but your subject line suggests
package.



Have a look at our section here

www.sqldts.com/default.aspx?104



"anotherfinemess" wrote:

I'm new to DTS and I would like to know how to send an email
notification, that is, execute an activex script if any of the
tasks
in the package fails.

I found
"Fail Package on first error"

but how do I execute VB script on this?

If this has already been answered can someone point me to that
thread?

Thanks

[/quote:c19133ed65]


I want to send a mail if any one of the step fails in a package. I do
not want to put an "on failure" for each and every step.


Reply With Quote
  #5  
Old   
anotherfinemess
 
Posts: n/a

Default re:Sending mail on Package Failure - 03-15-2005 , 01:07 AM



Thanks for the reply

but I'm not using VB, I'm using SQL Server Agent job to schedule th
DTS


Reply With Quote
  #6  
Old   
Kathy FM
 
Posts: n/a

Default Re: re:Sending mail on Package Failure - 03-16-2005 , 03:44 PM



If you are executing the dts package from a job you can send an email from
the job. Take a look at the Notifications tab in the job properities. You
may have to add an operator in Enterprise Manager. Does this help?


"anotherfinemess" <crusadertotherescue (AT) gmail-dot-com (DOT) no-spam.invalid> wrote
in message news:m92dnVu-EpowFKvfRVn_vg (AT) giganews (DOT) com...
Quote:
Thanks for the reply

but I'm not using VB, I'm using SQL Server Agent job to schedule the
DTS.




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.