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

sqlserver开启'xp_cmdshell'命令

时间:2022-03-13 22:51

--sql server中开启xp_cmdshell命令

1、 --允许配置高级选项 EXEC sp_configure ‘show advanced options‘, 1 GO RECONFIGURE GO 2、 --开启xp_cmdshell服务 EXEC sp_configure ‘xp_cmdshell‘, 1 RECONFIGURE GO 3、 --使用 xp_cmdshell master..xp_cmdshell ‘copy e:\databasebackup\test.bak m:‘ 4、 -- 允许配置高级选项 EXEC sp_configure ‘show advanced options‘, 1 GO RECONFIGURE GO -- 禁用xp_cmdshell EXEC sp_configure ‘xp_cmdshell‘, 0 GO RECONFIGURE GO

 

sqlserver开启'xp_cmdshell'命令,布布扣,bubuko.com

热门排行

今日推荐

热门手游