码迷,mamicode.com
首页 > 其他好文 > 详细

xp_cmdshell 命令的开启与关闭,和状态查询

时间:2014-07-07 08:12:28      阅读:363      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   div   res   

/*
EXEC sp_configure ‘allow updates’, 0
RECONFIGURE

*/

-- 启用:
exec sp_configure ‘show advanced options‘,1
reconfigure
exec sp_configure ‘xp_cmdshell‘,1
reconfigure

    --关闭:
exec sp_configure ‘xp_cmdshell‘,0
reconfigure
exec sp_configure ‘show advanced options‘,0
reconfigure 


select *  from sysconfigures where comment like ‘%show advanced options%‘ or  comment like ‘%shell%‘

 

xp_cmdshell 命令的开启与关闭,和状态查询,布布扣,bubuko.com

xp_cmdshell 命令的开启与关闭,和状态查询

标签:style   blog   color   io   div   res   

原文地址:http://www.cnblogs.com/mywiki/p/3822353.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!