Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How set notification in sql job

Author  Topic 

boreddy
Posting Yak Master

172 Posts

Posted - 2011-03-16 : 07:24:45
Hi Experts

I have one job which runs daily and it contains the total 43 steps
in the first 10 steps belongs ssis packages are running
remining steps contain the sql scripts(sql statements)

all steps runs in this way
the current step is failed or successed it goes to next step

i want the notification for the sql script steps fails
for example
if my 20 step is faild i have to get the mail
in the same flow, 34 step is failed the i have get the mail


to do this what can implement in my job

Thanks in advance

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-03-16 : 21:14:05
The last step of all of my jobs is a failure notification which emails/pages the DBA group.

Every *real* step goes to that step on failure.

The last *real* step quits the job reporting success
Go to Top of Page
   

- Advertisement -