SQL Server如何启用xp_cmdshell组件

Posted Neil

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于SQL Server如何启用xp_cmdshell组件的主要内容,如果未能解决你的问题,请参考以下文章