Friday, 26 August 2011

SQL Agent Immediately Stops

We just run into an interesting problem where starting the SQL Server Agent would start and then immediately stop. No errors were reported in the event log, but running the following via the command line returned "StartServiceCtrlDispatcher failed (error 6)"

"[[your SQL Path]]\Binn\SQLAGENT.EXE" -i [[sql Instance]]

Googling the error in question returned this forum post which contained the solution. We had reinstalled the service and the account that we were running under did not have the permissions to update / overwrite something (it wasn't the error file in question). Running the agent under a different account solved the issue; would be good to look into what the exact problem we are encountering is, but it's enough that it's running for us right now.

No comments:

Post a Comment