Solved

SQL Server agent & maintenance task issue ?

Posted on 2016-08-24
8
94 Views
Last Modified: 2016-08-25
Hi All,

I'm currently running SQL Server 2012 Standard SP1 on my Windows Server 2008 R2 and have login as SA user, somehow I cannot start the SQL Agent from SSMS and cannot edit the SQL maintenance job with this error:

TITLE: Microsoft SQL Server Management Studio
------------------------------

'Agent XPs' component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Agent XPs' by using sp_configure. For more information about enabling 'Agent XPs', see "Surface Area Configuration" in SQL Server Books Online. (ObjectExplorer)

------------------------------
BUTTONS:

OK
------------------------------

Open in new window


Any help would be greatly appreciated.

Thanks,
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 37

Expert Comment

by:bbao
ID: 41768317
it is by design, because Agent XPs component has been disabled.

what to do? basically all info and action you need to know have been provided by the error message. :)
0
 
LVL 51

Accepted Solution

by:
Vitor Montalvão earned 200 total points
ID: 41768320
That error doesn't says that SQL Agent service can't be started. It says that a group of extended stored procedures (XPs) couldn't be enabled because of a security configuration.

You can verify if SQL Server Agent is running by checking the services in SQL Server Configuration Manager.
1
 
LVL 37

Assisted Solution

by:bbao
bbao earned 100 total points
ID: 41768323
1
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 20

Assisted Solution

by:Marten Rune
Marten Rune earned 100 total points
ID: 41768506
It's not SQL Server express, if it is, the agent is disabled and can not be turned on. This is by MS design. It doesn't come whit the free edition.
0
 
LVL 4

Assisted Solution

by:Daniel Jones
Daniel Jones earned 100 total points
ID: 41769765
Enable the SQL Server Agent extended stored procedures by running the following query:
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Agent XPs', 1;
GO
RECONFIGURE
GO

Open in new window

1
 
LVL 8

Author Closing Comment

by:Senior IT System Engineer
ID: 41769795
Thanks guys, it seems the SQL Agent Service was stopped because of the service wa using Service account.
Not sure why, but when I change it as the local account it works again ?

Note: the service account is not locked.
0
 
LVL 20

Expert Comment

by:Marten Rune
ID: 41769801
The agent account does require instance and database access (jobs are stored in msdb database). This is not the case for the SQL Server Service account.

Just to clarify.

Regards Marten
0
 
LVL 51

Expert Comment

by:Vitor Montalvão
ID: 41769841
Thanks guys, it seems the SQL Agent Service was stopped because of the service wa using Service account.
Did you check if the SQL Agent account had permissions in SQL Server instance?
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

623 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