Doris_丁  
--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

 

posted on 2014-08-18 14:02  Doris_丁  阅读(1098)  评论(0编辑  收藏  举报