DATABASE AUTOMATED BACKUP ISSUE

时间:2014-08-27 07:05:25

标签: sql-server

我可以通过此查询进行完整备份,但无法接受差异和事务处理请帮助我

USE lcmc

DECLARE @MyFileName varchar(200)

SELECT @MyFileName='d:\1-backup'  + REPLACE(convert(nvarchar(20),GetDate(),120),':','-') + 'full.bak'

BACKUP DATABASE [LCMC]  TO DISK=@MyFileName 

1 个答案:

答案 0 :(得分:0)

请按照http://technet.microsoft.com/en-us/library/ms191180%28v=sql.105%29.aspx

上的说明进行操作
USE lcmc
DECLARE @MyFileName varchar(200)
SELECT @MyFileName='d:\1-backup' + REPLACE(convert(nvarchar(20),GetDate(),120),':','-') + 'full.bak'
BACKUP DATABASE [LCMC] TO DISK=@MyFileName 
WITH DIFFERENTIAL

应该这样做