码迷,mamicode.com
首页 > 系统相关 > 详细

xp_cmdshell 的开启和关闭

时间:2016-06-04 14:44:40      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:

  由于存在安全隐患,所以在SQL Server中, xp_cmdshell 默认是关闭的。

exec sp_configure ‘show advanced options‘,1
reconfigure
go
exec sp_configure ‘xp_cmdshell‘,0
reconfigure
go

 

 

 

exec sp_configure ‘show advanced options‘,1
reconfigure
go
exec sp_configure ‘xp_cmdshell‘,1
reconfigure
go

xp_cmdshell 的开启和关闭

标签:

原文地址:http://www.cnblogs.com/liu-shiliu/p/5558703.html

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