1
I’m having a problem importing a backup to the secondary server:
The topology: Server Production >> Server contingency.
When Full Backup is imported it matters without any problem. The problem occurs when I import the Differential Backup, which has an error (msg 3117), However when I import the full backup along with the differential backup (regardless of any of them) the import takes place without any problem, however this use is not productive due to the time of import and processing of the machine.
Scripts:
/*TRANLACT-SQL*/
/*FULL*/
RESTORE DATABASE ASCCLUB
FROM DISK = 'D:\SQL\2017\Janeiro\23\FULL\20170123_HORA010000_FULL.bak'
WITH REPLACE, NORECOVERY;
/*DIFF*/
RESTORE DATABASE ASCCLUB
FROM DISK = 'D:\SQL\2017\Janeiro\23\DIF\20170123_HORA170000_DIF.bak'
WITH RECOVERY;
Error when importing only Dif:
Msg 3117, Level 16, State 1, Line 12
The log or differential backup cannot be restored because no files are ready to rollforward.
Msg 3013, Level 16, State 1, Line 12
RESTORE DATABASE is terminating abnormally.
You cannot make a differential backup without full backup. The name already says, it is the difference between some point. What you have to do is a log backup
– Sorack
I understand, I import the Full backup without problems, and soon after I import the Dif, in a same sql it goes without problems, however when I perform a script and the diff in sequence occurs this error.
– Bulfaitelo
Yes, what you need, from what I understand in your problem is to backup Log. This can be restored without need of a basis, but will only encompass the period that has been determined. I’ll write an answer detailing you better
– Sorack
Now I understand, I’ll wait for your most complete explanation and I’ll test.
– Bulfaitelo