SQL Server如何启用xp_cmdshell组件

错误信息

SQL Server阻止了对组件‘xp_cmdshell’的过程‘sys.xp_cmdshell’的访问。因为此组件已作为此服务嚣安全配置的一部分而被关闭。系统管理员可以通过使用sp_configure启用‘xp_cmdshell’。有关启用‘xp_cmdshell’的详细信息,请参阅SQL帮助文件。

解决办法:
执行以下sql语句即可
sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
go
posted @ 2018-03-18 10:09  ggsmdaa  阅读(802)  评论(0)    收藏  举报