如何在 SQLServer 中启用 xp_cmdshell 等
如何在 SQLServer 中启用 xp_cmdshell 等
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'xp_cmdshell', 1;
RECONFIGURE;
--以下能正常执行说明 xp_cmdshell 启用成功
exec xp_cmdshell 'dir c:'
EXEC sp_configure 'Ole Automation Procedures', 1;
RECONFIGURE;
EXEC sp_configure 'Clr Enabled', 1;
RECONFIGURE;
作者:码路工人
公众号:码路工人有力量(Code-Power)
欢迎关注个人微信公众号 Coder-Power
一起学习提高吧~
![](https://gitee.com/Coding-Worker/picture/raw/master/2021-1-5/1609860559027-qrcode_for_gh_e1903e0c25a7_258.jpg)
posted on 2020-06-29 08:44 CoderMonkey 阅读(558) 评论(0) 编辑 收藏 举报