SQL Agent 2005 won't start

I'm having a problem getting the SQL agent restarted. It ran properly for about a week then stopped. SQL Server is running fine. I've used the sp_configure to change the settings for 'Agent XPs' to 1. I can see the settings changed, but when I go through either the Management Studio or Surface Area configuration it fails and resets the 'Agent XPs' value back to zero. Here's the error I get in the sqlagent.out file:

2006-07-28 10:15:37 - ! [241] Startup error: Unable to initialize error reporting system (reason: The EventLog service has not been started)
2006-07-28 10:15:37 - ? [098] SQLServerAgent terminated (normally)

I don't see an EventLog service under services that I can start.

Any help would be greatly appreciated. Thanks!

[775 byte] By [bcarter00] at [2007-12-22]
# 1

You should find a service called "Event Log" in the Services Control Panel. You can get to it through Administrative Tools -> Services.

Michelle

MichelleAlexander-MS at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...
# 2
I am getting this same error and the Event Log service is started and is always started on this server....
rolltidega at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...
# 3

Hi,

Can you open cmd prompt and run this cmd?

sc query Eventlog

And share the output? E.g. I just did that on my box:

=============================

c:\>sc query Eventlog

SERVICE_NAME: Eventlog
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(NOT_STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0

c:\>

=============================

JinFeng-MSFT at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...
# 4
I am having the same problem. My SC Query Eventlog reads the same as yours. However, there is no service in my services list that says eventlog.
Allen_Iowa at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...
# 5

I'm not sure why you can't find 'Event Log' service in your services snapin (launched by service.msc)

But sc query showed event log service is running, seems this is an agent service issue, can you post your question into SQL Server Database Engine section?

JinFeng-MSFT at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...
# 6
Just to post an update to this, This took a complete rebuid of the server to resolve. Because there was no "Event Log" service in the Services window, the Server Agent could not tell there was one running. I uninstalled and reinstalled SQL Server with no help. I then rebuilt the entire server and the agent would then run.
Allen_Iowa at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Setup & Upgrade...

SQL Server

Site Classified