如何在SQL Server中创建维护计划?

时间:2010-07-06 07:26:14

标签: sql-server maintenance

当我尝试在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)  

1 个答案:

答案 0 :(得分:48)

您需要首先运行以下命令来启用SQL Server代理扩展存储过程。

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