sqlserver开启'xp_cmdshell'命令

时间:2014-08-18 14:26:52   收藏:0   阅读:281
--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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!