sql server 备份

USE WAP_WORKSHEET;  
GO  
BACKUP DATABASE WAP_WORKSHEET  
TO DISK = 'E:\SQL\Data\backup\WAP_WORKSHEET.Bak'  
   WITH FORMAT,  
      MEDIANAME = 'Z_SQLServerBackups',  
      NAME = 'Full Backup of WAP_WORKSHEET';  
GO 


--backup database WAP_WORKSHEET
--to disk = 'E:\SQL\Data\backup\WAP_WORKSHEET.Bak' 
--with
--compression,
--format,
--init,
--skip,
--stats=5;

--backup log WAP_WORKSHEET
--to disk = 'E:\SQL\Data\backup\WAP_WORKSHEET_log.bak'
--with
--compression,
--format,
--init,
--skip,
--stats=5;

 

posted @ 2019-03-15 16:59  山顶洞外人  阅读(174)  评论(0编辑  收藏  举报