May 20, 2010 at 5:09 am
Hi,
How can i create alert for any jobs failure in the sql server 2000 based on that alert I want send mail notification through the sp_send_cdosysmail instead of sql mail.
please update your comments on this to create the successful alert for job failure.
May 20, 2010 at 8:28 pm
Hi,
Any update ?
May 20, 2010 at 8:34 pm
If these are SQL 2000 Jobs you are talking about I would set each step to "on failure go to" and send it to a special "Send e-mail on failure" step. Then build your e-mail logic into the step.
This way you can have some default code you use, but you can still customise it for each job.
Just a warning. The people on these forums all have real jobs that take up a lot of their time. They are always willing to help, but not to write your code for you.
Leo
Striving to provide a better service.
Leo
Nothing in life is ever so complicated that with a little work it can't be made more complicated.
May 20, 2010 at 8:42 pm
Leo.Miller (5/20/2010)
If these are SQL 2000 Jobs you are talking about I would set each step to "on failure go to" and send it to a special "Send e-mail on failure" step. Then build your e-mail logic into the step.This way you can have some default code you use, but you can still customise it for each job.
Just a warning. The people on these forums all have real jobs that take up a lot of their time. They are always willing to help, but not to write your code for you.
Leo
Striving to provide a better service.
Hi,
Thanks for your reply.I want create alert instead of modifying the jobs.
Leo, I never ask you guys to write code for me.Asked your comments to create alert in better way not code.so you understand this.
May 21, 2010 at 9:27 am
Sudhakar,
Its nicely demonstrated(with code) at http://www.dotnetjohn.com/articles.aspx?articleid=157
Sending SQL Server Notifications with CDOSYS...
HTH!
Manu
May 23, 2010 at 3:20 am
Thanks Manu...
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply