解決方法:
SQL代碼
sp_configure ''show advanced options'', 1  
Go  
RECONFIGURE  
GO  
sp_configure ''Agent XPs'', 1  
GO  
RECONFIGURE  
GO
sp_configure ''show advanced options'', 1
GO
RECONFIGURE
GO
sp_configure ''Agent XPs'', 1
GO
RECONFIGURE
GO
這是幫助文檔給出的答案,詳細可查看http://msdn.microsoft.com/zh-cn/library/ms178127.aspx
但是當執行上面的語句,卻報錯:“不支持對系統目錄進行即席更新。”
在網上找了下,終于找到答案,sql如下:
Sql代碼
sp_configure ''show advanced options'', 1  
GO  
RECONFIGURE WITH OVERRIDE   加上WITH OVERRIDE  
GO  
sp_configure ''Agent XPs'', 1  
GO  
RECONFIGURE WITH OVERRIDE     加上WITH OVERRIDE  
GO
sp_configure ''show advanced options'', 1
GO
RECONFIGURE WITH OVERRIDE   加上WITH OVERRIDE
GO
sp_configure ''Agent XPs'', 1
GO
RECONFIGURE WITH OVERRIDE     加上WITH OVERRIDE
GO
配置選項 ''show advanced options'' 已從 1 更改為 1。請運行 RECONFIGURE 語句進行安裝。
配置選項 ''Agent XPs'' 已從 0 更改為 1。請運行 RECONFIGURE 語句進行安裝。
至此問題解決。
摘于https://blog.csdn.net/fin86889003/article/details/62215544