Всем доброго времени суток!
Прошу помочь мне со сложившейся проблемой. Оговорюсь сразу, что с SQL-серверами я не работал совсем. Пароль, который я ввожу — это то, что мне передали, насколько он «рабочий» я не знаю.
В «наследство» достался сервер с ОС Windows Server 2008 Standard Rus, который является контроллером домена и сервером баз данных с SQL 2005.
При попытке подключиться к нему с помощью SQL Server Management Studio, которое установлено на этот же сервер я получаю ошибку:
Cannot connect to имя_сервераимя_базы
Additional information:
Подключение к серверу успешно установлено, но затем произошла ошибка при входе. (provider: Поставщик общей памяти, error: 0 — С обоих концов канала отсутствуют процессы.) (Microsoft SQL Server, Error: 223)
После перезагрузки на какое-то время начала появляться другая ошибка:
Cannot connect to имя_сервераимя_базы
Additional Information:
Login failed for user ‘sa’. (Microsoft SQL Server, Error: 18456)
Так же в журнале нашел ошибку 103: SQLServerAgent could not be started (reason: Error creating a new session).
Режим работы службы SQL Server Agent — Авто. Пробовал запустить службу в ручную, не получается. Выдает ошибку: Служба «SQL Server Agent» на «Локальный компьютеры» была запущена и затем остановлена. Некоторые службы автоматически останавливаются, если
они не используются другими службами или программами.
Пробовал запускать данную службу вручную. Не помогло. Служба запускается от имени «Системной учетной записи»
Заранее спасибо за помощь.
-
Изменен тип
24 ноября 2010 г. 15:43
пользователь отложил вопрос
SQL Server 2008 Developer SQL Server 2008 Enterprise SQL Server 2008 Express SQL Server 2008 Express with Advanced Services SQL Server 2008 Standard Еще…Меньше
Симптомы
Рассмотрим следующий сценарий:
-
Установка Microsoft SQL Server 2008 R2, экспресс-выпуск или Microsoft SQL Server 2008, экспресс-выпуск с дополнительными службами.
-
Обновления для разработчиков Microsoft SQL Server 2008, для Microsoft SQL Server 2008 Enterprise или Microsoft SQL Server 2008 Standard, используя следующую команду:
/action Setup.exe/q = режим editionupgrade =имя экземпляра параметры =идентификатор соответствующего выпуска продуктаИли с помощью установки графического пользовательского интерфейса GUI обновления для SQL Server 2008 Developer, SQL Server 2008 Enterprise или SQL Server 2008 Standard.
-
Запустите диспетчер управления службами.
Примечание. Чтобы сделать это, нажмите кнопку Пуск, выберите команду выполнить и введите services.msc.
-
Найдите службу агента SQL Server и попытайтесь запустить службу.
В этом случае служба агента SQL Server не запускается успешно. Кроме того в журнал событий записывается следующее сообщение об ошибке:
Не удалось запустить SQLServerAgent (причина: ошибка при создании нового сеанса)
Причина
Эта проблема возникает, так как в SQL Server 2008 Express и SQL Server 2008 Express с дополнительными службами, создается служба агента SQL Server, но не включен. Это условие является особенностью.
Решение
Чтобы устранить эту проблему, воспользуйтесь одним из следующих процедур в зависимости от используемой операционной системы.
Windows Server 2003 или Windows XP
Воспользуйтесь одним из следующих способов.
Метод 1: Включите службу агента SQL Server с помощью диспетчера конфигурации SQL Server
Чтобы сделать это, выполните следующие действия.
-
Нажмите кнопку Пуск, выберите пункт программыи нажмите кнопку SQL Server 2008.
-
Средства Настройкии выберите пункт Диспетчер конфигурации SQL Server.
-
Службы SQL Server 2008.
-
Найдите службу агента SQL Server. Служба агента SQL Server для экземпляров по умолчанию называется «Агент SQL Server» и называется «Агент SQL Server (имя экземпляра)» для именованных экземпляров.
-
Щелкните правой кнопкой мыши Агент SQL Serverи выберите команду Свойства.
-
На вкладке Вход , установите флажок этой учетной записи . Укажите другое имя учетной записи и пароль.
-
В разделе состояние службы нажмите кнопку Пуски затем нажмите кнопку ОК.
Метод 2: Включите службу агента SQL Server с помощью диспетчера управления службами
Для включения службы агента SQL Server вам требуется помощь, перейдите к разделу «помощь в решении проблемы». Если вы предпочитаете включить службу агента SQL Server самостоятельно, перейдите к разделу «Самостоятельное решение проблемы».
Помощь в решении проблемы
Чтобы автоматически включить службу агента SQL Server, щелкните загрузить . Затем нажмите кнопку Выполнить в диалоговом окне Загрузка файла и следуйте инструкциям мастера Fix it .
Примечания
-
После установки это автоматическое исправление, необходимо вручную изменить по умолчанию вход в учетную запись службы агента SQL Server. Кроме того убедитесь в том, что указанной учетной записи службы является членом локальной группы агента SQL Server.
-
Этот мастер может быть только на английском языке. Однако автоматическое исправление также работает для других языковых версий Windows.
-
Если вы не за компьютером, на котором выявлена проблема, сохраните файл с решением Fix it на флэш-накопитель или компакт-диск и запустите его на нужном компьютере.
Перейдите к разделу Устранена ли неполадка?.
Самостоятельное решение проблемы
Чтобы сделать это, выполните следующие действия.
-
Нажмите кнопку Пуск, выберите пункт Выполнить, введите services.msc и нажмите кнопку ОК.
-
В диспетчере служб, найдите соответствующую службу агента SQL Server. Служба агента SQL Server для экземпляров по умолчанию называется «Агент SQL Server» и называется «Агент SQL Server (имя экземпляра)» для именованных экземпляров.
-
Щелкните правой кнопкой мыши службу агента SQL Server. На вкладке Общие измените тип запуска отключено от соответствующее значение.
-
Перейдите на вкладку Вход в систему , установите флажок этой учетной записи . Укажите учетную запись и пароль и нажмите кнопку ОК.
После включения службы с помощью диспетчера управления службами, необходимо убедиться, что указанной учетной записи службы является членом локальной группы агента SQL Server. Чтобы сделать это, выполните следующие действия.
-
Нажмите кнопку Пуск, выберите пункт выполнить, введите команду compmgmt.msc и нажмите кнопку ОК.
-
Разверните узел Служебные программы, разверните узел Локальные пользователи и группыи затем разверните узел группы.
-
В области переходов найдите группу соответствующего агента. Имя агента группы является «SQLServerAgentUser$имя_компьютера$имя экземпляра».
Примечание. Для экземпляров по умолчанию имя экземпляра — «MSSQLSERVER».
-
Дважды щелкните группу, чтобы просмотреть список членов группы. Добавьте учетную запись службы как член этой группы.
Если присутствует предыдущей учетной записи службы, удалите ее.
Убедившись, что учетная запись службы является членом локальной группы агента SQL Server, добавьте учетную запись службы системного администратора для SQL Server 2008.
Windows Server 2008 или Windows Vista
Чтобы устранить эту проблему, в Windows Server 2008 или Windows Vista, выполните следующие действия.
Шаг 1: Включите службу агента SQL Server с помощью диспетчера управления службами
Для включения службы агента SQL Server вам требуется помощь, перейдите к разделу «помощь в решении проблемы». Если вы предпочитаете включить службу агента SQL Server самостоятельно, перейдите к разделу «Самостоятельное решение проблемы».
Помощь в решении проблемы
Чтобы включить службу агента SQL Server автоматически, нажмите кнопку загрузть кнопку или ссылку. Затем нажмите кнопку Выполнить в диалоговом окне Загрузка файла и следуйте инструкциям мастера Fix it .
Примечания
-
Этот мастер может быть только на английском языке. Однако автоматическое исправление также работает для других языковых версий Windows.
-
Если вы не за компьютером, на котором выявлена проблема, сохраните файл с решением Fix it на флэш-накопитель или компакт-диск и запустите его на нужном компьютере.
Перейдите к разделу Устранена ли неполадка?.
Самостоятельное решение проблемы
Чтобы сделать это, выполните следующие действия.
-
Нажмите кнопку Пуск, выберите пункт Выполнить, введите services.msc и нажмите кнопку ОК.
-
В диспетчере служб, найдите соответствующую службу агента SQL Server. Служба агента SQL Server для экземпляров по умолчанию называется «Агент SQL Server» и называется «Агент SQL Server (имя экземпляра)» для именованных экземпляров.
-
Щелкните правой кнопкой мыши службу агента SQL Server и выберите команду Свойства.
-
На вкладке Общие измените тип запуска отключено от соответствующее значение.
Шаг 2: Добавьте участника безопасности службы агента SQL Server в качестве системного администратора для SQL Server 2008
Примечание. Участник безопасности службы с именем «NT SERVICEMSSQLSERVER» для экземпляров по умолчанию и называется «NT $ SERVICESQLAGENTИмя экземпляра» для именованных экземпляров.
Дополнительные сведения о добавлении субъекта безопасности службы агента SQL Server посетите следующие веб-узлы Microsoft Developer Network (MSDN):
«Устранена ли неполадка?»
-
Проверьте, устранена ли проблема. Если проблема устранена, дальше можно не читать. Если проблема не устранена, обратитесь в службу поддержки.
-
Мы ценим ваши отзывы. Чтобы отправить отзыв или сообщить о проблемах, связанных с этим решением, оставьте комментарий в блоге «помощь в решении проблемы» или отправьте нам сообщение по электронной почте .
Нужна дополнительная помощь?
If you are trying to start SQL Server Agent and you get the error message SQLServerAgent could not be started (reason: Unable to connect to server ‘(local)’; SQLServerAgent cannot start) then read below, in order to see what you can try for resolving the issue.
How to Resolve the Issue
Go to computer management – local users and groups, and add the service account with which you want SQL Server Agent service to start in the below Windows group:
SQLServerSQLAgentUser$[ComputerName]$[InstanceName]
Then, make sure that the service account meets the requirements described on the following MSDN Article.
One of the requirements is that the SQL Server Agent service account is SysAdmin on the SQL Server instance.
So, among the rest of the requirements, make sure that the local Windows Group “SQLServerSQLAgentUser$[ComputerName]$[InstanceName]” has SysAdmin access on the SQL Server instance (important note: never add any irrelevant users to this group – just the service account that start SQL Server agent service).
The last step is to go to SQL Server Configuration Manager, enter SQL Server Agent properties and make sure that the service account that starts the service is the one for which you followed the above steps.
Note: In order to avoid such issues in the future, make sure that during the installation of SQL Server you specify the proper service accounts. This way, SQL Server’s installation process will automatically grant the necessary permissions and arrange the required group memberships for the specified service accounts.
Learn more tips like this! Enroll to our Online Course!
Check our online course titled “Essential SQL Server Administration Tips” (special limited-time discount included in link).
Learn essential hands-on SQL Server Administration tips on SQL Server maintenance, security, performance, integration, error handling and more. Many live demonstrations and downloadable resources included!
(Lifetime Access/ Live Demos / Downloadable Resources and more!) Enroll from $12.99
If the Above did not Resolve the Issue
If the above did not resolve the issue, there are some additional steps that might help with your troubleshooting process. To this end, you can try reading the SQL Server error log, in order to find additional information about the error. You can easily find the location of SQL Server’s log file by running the below T-SQL query from SQL Server Management Studio:
USE master GO xp_readerrorlog 0, 1, N'Logging SQL Server messages in file', NULL, NULL, N'asc' GO
Alternatively, you can check the Application Log in Windows Event Viewer on the database server.
Featured Online Courses:
- SQL Server 2022: What’s New – New and Enhanced Features [New]
- Data Management for Beginners – Main Principles
- Introduction to Azure Database for MySQL
- Working with Python on Windows and SQL Server Databases
- Boost SQL Server Database Performance with In-Memory OLTP
- Introduction to Azure SQL Database for Beginners
- Essential SQL Server Administration Tips
- SQL Server Fundamentals – SQL Database for Beginners
- Essential SQL Server Development Tips for SQL Developers
- Introduction to Computer Programming for Beginners
- .NET Programming for Beginners – Windows Forms with C#
- SQL Server 2019: What’s New – New and Enhanced Features
- Entity Framework: Getting Started – Complete Beginners Guide
- A Guide on How to Start and Monetize a Successful Blog
- Data Management for Beginners – Main Principles
Related Error Messages and ways to Resolve them:
- Operating System Error 170 (Requested Resource is in use)
- There is no SQL Server Failover Cluster Available to Join
- Setup failed to start on the remote machine. Check the Task scheduler event log on the remote machine.
- SQL Server 2008 R2 Service Pack Installation Fails – Element not found. (Exception from HRESULT: 0x80070490)
- Could not load file or assembly ‘Microsoft.SqlServer.Smo, Version=10.0.0.0, …
- The operation failed because either the specified cluster node is not the owner of the group, or the node is not a possible owner of the group
- Issue Adding Node to a SQL Server Failover Cluster – Greyed Out Service Account – How to Resolve
- … more SQL Server troubleshooting articles
Subscribe to our newsletter and stay up to date!
Subscribe to our YouTube channel (SQLNetHub TV)
Check out our latest software releases!
Check our eBooks!
Rate this article: 



(2 votes, average: 5.00 out of 5)
Loading…
Reference: SQLNetHub.com (https://www.sqlnethub.com)
© SQLNetHub
Troubleshooting: SQLServerAgent could not be started (reason: Unable to connect to server ‘(local)’; SQLServerAgent cannot start)
Click to Tweet
Artemakis Artemiou is a Senior SQL Server Architect, Author, a 9 Times Microsoft Data Platform MVP (2009-2018). He has over 20 years of experience in the IT industry in various roles. Artemakis is the founder of SQLNetHub and {essentialDevTips.com}. Artemakis is the creator of the well-known software tools Snippets Generator and DBA Security Advisor. Also, he is the author of many eBooks on SQL Server. Artemakis currently serves as the President of the Cyprus .NET User Group (CDNUG) and the International .NET Association Country Leader for Cyprus (INETA). Moreover, Artemakis teaches on Udemy, you can check his courses here.
Views: 11,006
- Remove From My Forums
-
Question
-
Hello.
One of my customers has SQL Server 2008 R2 Install… but for some reasone i dont get the SQL Agent to start.
The First error I get is: «The SQL Server Agent (SQLEXPRESS) Service on Local Computer Started and then Stopped.
Some Services stop automatically if they
are not in use by other services or Programs.In the Event I have a error: SQLServerAgent Could not be started (Reason: Error Creating a new Session)
Please Can you help me.. I cant get it to start.
Thanks
Answers
-
If its Express Edition, SQL Agent for that instance won’t start.
Balmukund Lakhani | Please mark solved if I’ve answered your question, vote for it as helpful to help other user’s find a solution quicker
———————————————————————————
This posting is provided «AS IS» with no warranties, and confers no rights.
———————————————————————————
My Blog |
Team Blog | @Twitter-
Proposed as answer by
Monday, October 10, 2011 6:41 PM
-
Marked as answer by
Sethu Srinivasan
Friday, August 10, 2012 5:59 PM
-
Proposed as answer by
January 19, 2012 at 5:05 pm
#266910
I can’t start the SQL Server Agent Service on a new installation.
During the install I chose not to start the service.
When I attempt to start the service it failed to start.
I checked the application event log and following error occurred:
SQLServerAgent could not be started (reason: Error creating a new session).
SQLRNNR
SSC Guru
Points: 281324
Welsh Corgi
SSC Guru
Points: 116520
Unfortunately it did not work.
jonathan.d.myers
Old Hand
Points: 325
I have a potential suggestion and solution around this issue. I ran into a similar situation within the last bit on some of my lower level instances. Those a currently still SQL 2005, but this issue may apply to SQL 2008 and SQL 2012 upgrades.
We were running an audit and removing some legacy accounts, as well as the Builtin-Administrators group, as is standard after a SQL 2005 server install and on a regularly scheduled basis.
The next morning, the SQL Job Agent on one of my instances started throwing the same error as above when someone attempted to run the job. After a few minutes of troubleshooting, I figured out my service ID was not explicitly added to the security in the server instance. It had been on all the other instances, which is why no one else was complaining.
After adding the service ID to the SQL security with sysadmin, the service started right up. After removing the Builtin-Administrators group, the ID apparently did not have the rights to access the system tables it needed to be able to start.
So, let me know if this also resolved it for you. And please provide feedback if you believe I’ve not fully explained the solution or need more details. Thank you!
Jonathan Myers
DBA Admin, Systems Analyst
BofA
durai nagarajan
SSCoach
Points: 15745
I accept Jonathan’s comments check the security part.
Regards
Durai Nagarajan
Simon D Richards
Ten Centuries
Points: 1048
I know this is old, but I had a similar issue recently. It was a security issue. For whatever reason, the security was not propagated properly during install, I did the following to fix:
Switched the account in windows services to a local system account.
Started SQL Agent
Stopped SQL Agent
Changed the service to my account in windows services
Started Agent.
Hope this helps anyone experiencing a similar issue.
Welsh Corgi
SSC Guru
Points: 116520
Simon D Richards (3/13/2013)
I know this is old, but I had a similar issue recently. It was a security issue. For whatever reason, the security was not propagated properly during install, I did the following to fix:
Switched the account in windows services to a local system account.
Started SQL Agent
Stopped SQL Agent
Changed the service to my account in windows services
Started Agent.
Hope this helps anyone experiencing a similar issue.
I forgot to post that I resolved this issue.
If you switch to a local account, start and stop the SQL Agent and change the Domain Account it works.
I had a situation yesterday where I had to do that and it works.
sql.swayambhu
SSC Journeyman
Points: 96
Give SA access to -NT AUTHORITYSYSTEM
SQLAli
Ten Centuries
Points: 1079
Yes, I do faced the same issue.
Error from Eventvwr: SQLServerAgent could not be started (reason: Error creating a new session)
Resolution:
1) Add the service account as Administrators at server level. i.e. Computer — Manage — Administrators — Add service account
2) Provide the SA privileges to the service account and start the agent service.
Thanks,
I’m nobody but still I’m somebody to someone………….
alnor
Say Hey Kid
Points: 708
Hi Guys
I had the same issue — above did not resolve issue
Checked under alias (more than 1 of these) in config manager
They all had different IP addresses to the one under network TCP/IP
changed them all to be the same and it worked.
under Client Protocols
Under Aliases
Thanks
After a Windows Patch upgrade on a server with SQL Server 2005 installed , start up error messages appeared on start up of some SQL Server Services.
SQLServerAgent could not be started (reason: Error creating a new session).
This was strange , as there were three SQLServer Agent services on this server – all using the same service account username and password. Two started OK. But the third generated the error message
After some trial and error , I decided to complete the following steps , which fixed the problem :
1) Switched the account in windows services to a local system account.
2) Started SQL Agent — OK
3) Stopped SQL Agent — OK
4) Changed the service account back to the service account in windows services
A strange error and I still haven’t understood the root cause. I assumed it would be changes in permissions on the SQL Agent security context and I did look at the account . The account was under the correct group with the correct privileges.
I also used this technique to Find who made a database security change — SQL Server DBA
If anyone has experienced similar problems, let me know — either contact me or leave a comment
Read More on managing SQL Server security
Powershell sql server security audit — SQL Server DBA
SQL Server Security Policy — SQL Server DBA
Security Risk Analysis and database security — SQL Server DBA
Author: Tom Collins (http://www.sqlserver-dba.com)
Share:
I start a Windows SQL Server in a Docker Container on a Windows Server 2016 virtual machine with this command:
docker container run --name mssql-server --detach --publish 1433:1433 --memory 2048mb --volume C:_Data:C:_Data --env sa_password=myPassword --env ACCEPT_EULA=Y microsoft/mssql-server-windows-developer
Afterwards I want to start the SQL Agent with this command:
docker container exec mssql-server cmd.exe /C "net start sqlserveragent"
Unfortunately I get this Output:
The SQL Server Agent (MSSQLSERVER) service is starting.
The SQL Server Agent (MSSQLSERVER) service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534
When I type NET HELPMSG 3534 I get:
The service did not report an error.
I am completely out of ideas. On my local machine this works fine, but not on the build server.
Any help appreciated.
Edit:
I opened the SQL Server Management Studio and noticed the SQL Server Agent (Agent XPs disabled) node.
So I went through everything in https://www.mssqltips.com/sqlservertip/2729/how-to-start-sql-server-agent-when-agent-xps-show-disabled/. Afterwards I executed
exec sp_configure 'Agent XPs'
and the result was:

But when I tried to start the agent, I got the exact same error message from above (service ist starting… service could not be started… no error reported).
The interesting thing is, when I run
exec sp_configure 'Agent XPs'
again, I get this:

How is it possible, that the start-agent-command disables the Agent XPs?
Edit2: I just learned from a comment at https://community.spiceworks.com/topic/293771-sql-server-agent-agent-xps-disabled-sql-server-2008 that the agent configures this values automatically when it is started and stopped. So I shouldn’t enabled it manually.
Edit3:
After a comment from Jeroen Mostert I looked into the EventLog.
I used the following command:
docker container exec mssql-server powershell.exe "Get-EventLog Application -Newest 100"
This is the result from the Application-Log
Time EntryType Source InstanceID Message
---- --------- ------ ---------- -------
Jun 25 10:37 Information SQLSERVERAGENT 1073741926 SQLServerAgent service successfully stopped.
Jun 25 10:37 Information MSSQLSERVER 1073757281 Configuration option 'Agent XPs' changed from 1 to 0. Run the RECONFIGURE statement to install.
Jun 25 10:36 Information MSSQLSERVER 1073757281 Configuration option 'Agent XPs' changed from 0 to 1. Run the RECONFIGURE statement to install.
You can see, that I have manually enabled the Agent XPs. Then I ran the command from above to start the agent, which gave me the next two lines
The System-EventLog gave me:
Time EntryType Source InstanceID Message
---- --------- ------ ---------- -------
Jun 25 10:37 Information Service Control Manager 1073748860 The SQL Server Agent (MSSQLSERVER) service entered the stopped state.
Edit 4:
As per the comment from Dan Guzman: this is the content of SQLAGENT.OUT:
2019-07-09 11:03:44 - ? [000]
2019-07-09 11:03:44 - ? [098] SQLServerAgent terminated (normally)
Edit 5:
The version is (select @@version) is:
Microsoft SQL Server 2017 (RTM-CU3-GDR) (KB4052987) - 14.0.3015.40 (X64) Dec 22 2017 16:13:22 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Windows Server 2016 Datacenter 10.0 <X64> (Build 14393: ) (Hypervisor)
Fixing Startup Failure of SQL Server Agent Service in SQL Server 2005
I recently set up a new SQL Server 2005 + service pack 2 installation in a Windows 2003 Server environment. The services were configured to start using the network service account (NT AUTHORITYNetworkService). All of the services started successfully, except for SQL Server Agent.
Symptoms
A warning dialog will appear with the following error message:
The SQL Server Agent (MSSQLSERVER) service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.

In Event Viewer, an error event is logged with the following description:
SQLServerAgent could not be started (reason: Error creating a new session).

The following appears in the SQL Server Agent log file (located at C:program filesMicrosoft SQL ServerMSSQL.1MSSQLLOGSQLAGENT.OUT on my system, but this will depend on the particulars of your installation):
2008-01-17 11:04:40 — ! [298] SQLServer Error: 15247, User does not have permission to perform this action. [SQLSTATE 42000] (DisableAgentXPs)
2008-01-17 11:04:40 — ! [298] SQLServer Error: 229, The EXECUTE permission was denied on the object ‘sp_sqlagent_has_server_access’, database ‘msdb’, schema ‘dbo’. [SQLSTATE 42000] (ConnIsLoginSysAdmin)
2008-01-17 11:04:40 — ! [298] SQLServer Error: 229, The EXECUTE permission was denied on the object ‘sp_sqlagent_get_startup_info’, database ‘msdb’, schema ‘dbo’. [SQLSTATE 42000]
2008-01-17 11:04:40 — ! [298] SQLServer Error: 229, The INSERT permission was denied on the object ‘syssessions’, database ‘msdb’, schema ‘dbo’. [SQLSTATE 42000]
2008-01-17 11:04:40 — ! [000] Error creating a new session
2008-01-17 11:04:41 — ? [098] SQLServerAgent terminated (normally)
Cause
The account under which the SQL Server Agent runs does not have the permissions required to start the service successfully.
SolutionOn my system, SQL Server Agent is configured to run as NT AUTHORITYNetworkService. You will need to identify the user that runs SQL Server Agent on your system. To do this, open the Services administrative tool, right click on the SQL Server Agent (MSSQLSERVER) service, and choose properties. Click on the Log On tab, and note the user:

I gave this account the sysadmin server role in SQL Server. To do this, open SQL Server Management Studio and log in to the database engine. Drill down into Security, and then Logins. Right click on the user that runs SQL Server Agent, and choose properties. Under Select a page in the top left corner of the properties window, click on Server Roles. Enable the sysadmin role by clicking on the check box in the Server Roles pane, and then click on OK.
You should now be able to start SQL Server Agent successfully.
