-- 允许配置高级选项
EXEC sp_configure 'show advanced options',1
GO
-- 重新配置RECONFIGURE
GO
-- 禁用xp_cmdshell
EXEC sp_configure 'xp_cmdshell', 1
GO
--重新配置RECONFIGURE
GO
-- 允许配置高级选项
EXEC sp_configure 'show advanced options',1
GO
-- 重新配置RECONFIGURE
GO
-- 禁用xp_cmdshell
EXEC sp_configure 'xp_cmdshell', 1
GO
--重新配置RECONFIGURE
GO
转载于:https://www.cnblogs.com/secbook/archive/2012/08/04/2654860.html