Solved

SQL Server agent & maintenance task issue ?

Posted on 2016-08-24
8
70 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
  • 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 47

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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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 7

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 47

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now