SQL2008-备份SQL数据库的语句
时间:2021-07-01 10:21:17
帮助过:3人阅读
1.备份库BACKUP DATABASE CDJQ_CEM2008 TO DISK = ‘d:\zhu\123.bak‘2.开启RAR加压功能EXEC sp_configure ‘show advanced options‘, 1GORECONFIGUREGOEXEC sp_configure ‘xp_cmdshell‘, 1GORECONFIGURE3. 加压declare @file varchar(100)set @file=‘D:\WinRAR\WinRAR.exe a -ep -df D:\zhu\123.bak‘exec master..xp_cmdshell @fileSQL2008-备份SQL数据库的语句
标签: