您的位置:首页 > 博客中心 > 数据库 >

SQL 2008 启用和禁用xp_cmdshell

时间:2022-03-14 03:13

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

热门排行

今日推荐

热门手游