3

SQL Server 2012 SP2 CU6 v-5592

我启动 SQL 服务和 SQL 代理服务;都开始OK。然后我在 Windows 2012 Ent(不是 R2)服务器上登录到 SSMS,SQL 代理有红色 X,并在 SSMS 中显示为“SQL Agent XPs Disabled”,我只需在对象资源管理器中右键单击服务器上的刷新,一切正常

重新运行 reconfigure = 1 和相同的东西;说已经设置为 1

两台相同的服务器;当天安装,一做一不。

为什么Disabled不是这样说呢?我的工作会失败吗?我该如何摆脱这个?

4

1 回答 1

-2

执行这个

USE MASTER DATABASE 
    declare @agent_enabled bit
    declare @show_advanced bit
    select @show_advanced = cast(value_in_use as bit)
    from sys.configurations where name = N‘show advanced options’
    select @agent_enabled = cast(value_in_use as bit)
    from sys.configurations where name = N‘Agent XPs’
    if 0 <> @agent_enabled
    begin
    if 1 <> @show_advanced
    begin
    exec sys.sp_configure @configname = N‘show advanced options’, @configvalue = 1
    reconfigure with override
    end
    exec sys.sp_configure @configname = N‘Agent XPs’, @configvalue = 0
    reconfigure with override
    if 1 <> @show_advanced
    begin
    exec sys.sp_configure @configname = N‘show advanced options’, @configvalue = 0
    reconfigure with override
    end
    end

然后去

Start -> Control Panel -> Administrative Tools -> Services (double click)->SqlServerAgent(MSSQLSERVER)-> Start(right click)
于 2015-08-06T23:35:46.243 回答