我可以通过此查询进行完整备份,但无法接受差异和事务处理请帮助我
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
答案 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
应该这样做