mssql 开启xp_cmdshell

开启 

sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
go

关闭一样.只是将上面的后面的那个"1"改成"0"就可以了. 

sp_configure 'show advanced options',0
reconfigure
go
sp_configure 'xp_cmdshell',0
reconfigure
go

原文地址:https://www.cnblogs.com/for-dream/p/12176785.html