【问题标题】:How to create maintenance plan in SQL Server?如何在 SQL Server 中创建维护计划?
【发布时间】:2010-07-06 07:26:14
【问题描述】:

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

【问题讨论】:

  • 如果 SQL Server 代理服务未运行,您也会收到此消息。除了 T-SQL 答案之外,请检查 SQL Server 代理的 Windows 服务列表,并确保将其设置为自动启动并运行。

标签: sql-server maintenance


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多