Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL Server agent & maintenance task issue ?

Posted on 2016-08-24
8
Medium Priority
?
116 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 52

Accepted Solution

by:
Vitor Montalvão earned 800 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 400 total points
ID: 41768323
1
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 20

Assisted Solution

by:Marten Rune
Marten Rune earned 400 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 400 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 52

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
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…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

926 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