Solved

SQL 2005 SQL Agent stopping

Posted on 2009-05-13
11
359 Views
Last Modified: 2012-05-06
Hi,
For some reason, SQL Agent stops every morning at 4:00 am on my server.  I looked at the logs and this is all it says:
Date            5/13/2009 4:00:48 AM
Log            SQL Agent (Archive #1 - 5/13/2009 4:00:00 AM)

Message
[098] SQLServerAgent terminated (normally)

The SQL Agent service is logged in as a the local system account.

Any help is greatly appreciated.
thanks,
-RocketMonkey
0
Comment
Question by:rocketmonkey
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 25

Expert Comment

by:reb73
ID: 24377652
0
 
LVL 6

Expert Comment

by:bull_rider
ID: 24377745
Can you run sql server agent under a domain account and see if the problem persists?
0
 

Author Comment

by:rocketmonkey
ID: 24378460
Thanks for the responses.

I have tried it under a domain account and I have also ensured that the domain account has sys admin rights on the SQL Server.  The SQL Agent starts up fine.  It just stops everynight at 4:00 am for some reason...
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 24380644
Have you configured Automatic Updates from Windows configured to run at 4.00 am each day. Or check for any other scheduled tasks in windows scheduler and review it and remove so that it doesn't affects SQL Agent.
0
 
LVL 6

Expert Comment

by:bull_rider
ID: 24381224
There is some scheduled task running which shuts it down at 4:00 clcok. Confirm this with your administrator. or may be some sql job itself which shuts sql sever agent.
0
 

Author Comment

by:rocketmonkey
ID: 24386870
Oh.. man... rrjegan17...  It appears that Windows Updates are set for Daily at 4:00 am, so I guess that is what is causing the SQL Agent to stop.  But why would windows updates cause the SQL Agent to stop?  Also, I set the recovery on the SQL Agent Service to restart the SQL Agent if it stops, but that does not seem to work.  It also appears that I do not have the proper permissions to change the updates even they I am in the local admin group on the server...
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24393723
This happens because some update should have happened which resets this service.

To resolve this one out, do the steps below:

1. Type Services.msc in Run prompt
2. You will be able to find out SQL Server Agent Service.
3. Right Click SQL Server Agent Service --> Recovery.
4. For First Failure, Second Failure and Subsequent Failures Choose Restart the Service and in Restart Service after 1 minutes.

This should restart your SQL Server Agent service after 1 minute even if Windows update stops it by 4.00 am
And make sure that SQL Server Agent Service runs under LocalSystem account.
0
 

Author Comment

by:rocketmonkey
ID: 24403297
Thanks rrjegan17.

For some reason, the service does not restart even though I set it to restart the service after 1 minute.  Here is what the log file is saying for SQL Agent:
Date            5/16/2009 4:00:45 AM
Log            SQL Agent (Archive #2 - 5/16/2009 4:00:00 AM)

Message
[131] SQLSERVERAGENT service stopping due to a stop request from a user, process, or the OS...
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24405019
Try disabling SQL Database Main temporarily from SQL Server Configuration Manager and check whether SQL Agent starts correctly or not.
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24405021
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24405023
Try disabling SQL Database Mail temporarily from SQL Server Configuration Manager and check whether SQL Agent starts correctly or not.

More info below:

http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/32a2c09a-156f-43b2-9076-b11ba9ccdafb/
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
TypeError: Users.save is not a function 3 60
Powershell script 13 115
Generate Scripts of Schema/Data with "WHERE" clause 6 72
ServiceCenter IR Query Expressions 1 40
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question