Auto-start the SQL Server Agent after a computer restart
I am using the SQL Server Agent
to run some jobs every day, but the problem is that whenever the server (the machine itself) is restarted, the SQL Server Agent
doesn't automatically start when the computer boots back up again...and I have to start it manually myself.
How can I set the Server Agent to Auto-Start after a computer restart?
Is there a particular Windows Service I need to set as auto-start ?
Solution 1:
Run services.msc, go to SQL SERVER AGENT service and set it on automatic start-up type
You can do the same thing by accessing sql server configuration manager that should be located in start/programs/microsoft sql server/configuration tools.
Solution 2:
- Check/ reset the user account that SQL Server Agent is using through SQL Server Configuration Manager (don't use services.msc) This will ensure correct permissions on files.
- Check the Windows event log for any errors
- Check the SQLAGENT.OUT file for any errors
- Open SSMS and ensure that your MSDB database is there & functional
Solution 3:
- Run Program: SQL Server Configuration Manager
- click on SQL Server Services.
- Right Click on SQL Server Agent and click on Properties.
- click on Service tab and set Start Mode = Automatic.