错误描述: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