xp_cmdshell 的开启和关闭

  由于存在安全隐患,所以在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

posted @ 2016-06-04 13:53  晴天MM  阅读(1620)  评论(0编辑  收藏  举报