Solved

SQL Server agent & maintenance task issue ?

Posted on 2016-08-24
8
54 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:Bing CISM / CISSP
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 45

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:Bing CISM / CISSP
Bing CISM / CISSP earned 100 total points
ID: 41768323
1
 
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
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.

 
LVL 3

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 45

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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…
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…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

762 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

22 Experts available now in Live!

Get 1:1 Help Now