Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Agent stopped when Job running Expand / Collapse
Author
Message
Posted Wednesday, November 16, 2005 7:57 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Sunday, October 17, 2010 4:18 PM
Points: 360, Visits: 168

We frequently stop SQL Server Agent whenever Exchange server is rebooted because of this

Last night the Exchange server was rebooted and the Agent was stopped when one of the Sync Job was running. This job usually takes 2 hours to run and is scheduled to run at night when there are no users. The Network Admin. failed to notice that this job was running. The job log shows this error 'The job was stopped prior to completion by Shutdown Sequence 0'

On a normal run, when this job fails email is sent to all Admins. Since this job was stopped manually (by the Agent) no email was sent.

It would be nice if the Agent pops a message that Jobs are running before a Stop request is sent.

Is there any preventive steps that can be taken ?

TIA

Post #237536
Posted Wednesday, November 16, 2005 2:38 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Sunday, November 16, 2014 6:41 PM
Points: 2,693, Visits: 1,219

That is precisely why I switched from using MAPI based SQL Agent Mail to xp_smtp_sendmail from www.sqldev.net

Once setup, you can bounce the Exchange server as much as you like and email from SQL Server still works.

As for preventive steps. You could try putting together a VBScript of some description to check for running jobs and then stop the Agent.

 



Hope this helps
Phill Carter
--------------------
Colt 45 - the original point and click interface

Australian SQL Server User Groups - My profile
Phills Philosophies
Murrumbeena Cricket Club
Post #237662
Posted Thursday, November 17, 2005 10:17 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, April 27, 2009 2:59 PM
Points: 342, Visits: 68
I agree with Phil using SQL Mail in SQL 2000 sucks.  Looking forward to SQL 2005 which uses SMTP mail.


Post #237897
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse