I'm having a problem importing a backup to the secondary server:
The topology: Production Server > > Contingency server.
When importing Full Backup, it imports without any problems. The problem occurs when I import Differential Backup, which causes an error (msg 3117), But when importing the full backup together the differential backup (regardless of any of them) the import occurs without any problem, but this use is not productive due to the time of import and consumption of processing of the machine.
Scripts:
/*TRANLACT-SQL*/
/*FULL*/
RESTORE DATABASE ASCCLUB
FROM DISK = 'D:\SQL17\Janeiro\FULL170123_HORA010000_FULL.bak'
WITH REPLACE, NORECOVERY;
/*DIFF*/
RESTORE DATABASE ASCCLUB
FROM DISK = 'D:\SQL17\Janeiro\DIF170123_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.