Unix Technical Forum

send email to me when job fails

This is a discussion on send email to me when job fails within the SQL Server forums, part of the Microsoft SQL Server category; --> 1. I'm trying to get the notifications working on the scheduled jobs. I want to email me when the ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 04:33 AM
Dhruv
 
Posts: n/a
Default send email to me when job fails

1. I'm trying to get the notifications working on the scheduled jobs.
I want to email me when the job fails. I created an operator
(dmalhotr) and given me as the email address.

Here is the error what I'm getting when I'm pressing the test button
to email myself in properties dmalhotr operator (hope that makes
sense).

Error 22022: sqlserveragent error: the sqlserveragent mail session is
not running; check the mail profile and/or the sqlserveragent service
startup account in the sqlserveragent properties dialog.

I cancel out of it. Then I go to support services --> sql mail -->
right-click properties (WE HAVE LOTUS NOT EXCHANGE HERE- dont know
whether that makes a difference).

It says profile name Outlook and I click test. It says Successfully
started (and stopped) a MAPI session with this profile.

I go back to the operator and then click test to send email and I get
the same error. I started and stopped sql server agent and still get
the same error.

Not sure how this works, please send me an email as to what I'm doing
wrong

Thanks

HRUV
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 04:33 AM
John Bell
 
Posts: n/a
Default Re: send email to me when job fails

Hi

SQL Agent Mail needs to be set up separately to SQL Mail. See the following
on how to set it up:
http://msdn.microsoft.com/library/de...rverE-mail.asp

John

"Dhruv" <dmalhotr2001@yahoo.com> wrote in message
news:b6d0b0b.0407090834.39146e33@posting.google.co m...
> 1. I'm trying to get the notifications working on the scheduled jobs.
> I want to email me when the job fails. I created an operator
> (dmalhotr) and given me as the email address.
>
> Here is the error what I'm getting when I'm pressing the test button
> to email myself in properties dmalhotr operator (hope that makes
> sense).
>
> Error 22022: sqlserveragent error: the sqlserveragent mail session is
> not running; check the mail profile and/or the sqlserveragent service
> startup account in the sqlserveragent properties dialog.
>
> I cancel out of it. Then I go to support services --> sql mail -->
> right-click properties (WE HAVE LOTUS NOT EXCHANGE HERE- dont know
> whether that makes a difference).
>
> It says profile name Outlook and I click test. It says Successfully
> started (and stopped) a MAPI session with this profile.
>
> I go back to the operator and then click test to send email and I get
> the same error. I started and stopped sql server agent and still get
> the same error.
>
> Not sure how this works, please send me an email as to what I'm doing
> wrong
>
> Thanks
>
> HRUV



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com