views:

21

answers:

1

I have dts package in 2008. It was a ftp task and a mail task. i want to send an email with the task execution results (exact error messages)

Is there a way to receive previous task's error codes/messages in the send email task?

+1  A: 

You can get the error and message of the previous step from the sysjobhistory table. You need to know your own job id (eg. look it up by name in syjobs).

Remus Rusanu