錯誤描述:SQL Server阻止了對組件‘xp_cmdshell’的過程‘sys.xp_cmdshell’的訪問。因為此組件已作為此服務囂安全配置的一部分而被關閉。系統管理員可以通過使用sp_configure啟用‘xp_cmdshell’。有關啟用‘xp_cmdshell’的詳細信息,請參閱sQL幫助文件。
解決方案
sp_configure 'show advanced options',1
reconfigure
go
sp_c onfigure 'xp_cmdshell',1
reconfigure
go
reconfigure
go
sp_c onfigure 'xp_cmdshell',1
reconfigure
go