首页 > 代码库 > SQL 2008 启用和禁用xp_cmdshell

SQL 2008 启用和禁用xp_cmdshell

-- 允许配置高级选项
EXEC sp_configure ‘show advanced options‘, 1
GO
-- 重新配置
RECONFIGURE
GO
-- 禁用xp_cmdshell
EXEC sp_configure ‘xp_cmdshell‘, 1
GO
--重新配置
RECONFIGURE
GO

SQL 2008 启用和禁用xp_cmdshell