2010-07-06 87 views
12

当我试图创建SQL Server中的新的维护计划,其显示的错误:如何在SQL Server中创建维护计划?

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) 
+2

如果SQL Server代理服务未运行,您还会收到此消息。除了T-SQL答案之外,请检查SQL Server代理的Windows服务列表,并确保它设置为自动启动并运行。 – ulty4life 2015-09-01 16:06:06

回答

47

您需要启用SQL Server代理扩展运行下面的第一个存储过程。

sp_configure 'show advanced options', 1; 
GO 
RECONFIGURE; 
GO 
sp_configure 'Agent XPs', 1; 
GO 
RECONFIGURE 
GO 
+1

这解决了我完全相同的问题。 – Kta 2013-08-01 14:27:12