Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Problem in Restoring Differential Backup in SQL Server 2008 R2


Problem in Restoring Differential Backup in SQL Server 2008 R2

Author
Message
shohelr2003
shohelr2003
SSC Veteran
SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)SSC Veteran (225 reputation)

Group: General Forum Members
Points: 225 Visits: 610
Dear,

First of all, I took the full backup of my database. After that I executed some insert queries. Then I took the differential backup of my database.

Now I have created another database and tried to restore the differential backup that has taken before. But I got the following error message.

Restore failed for Server 'A'. (Microsoft.SqlServer.SmoExtended)

Additional information:
:
-->System.Data.SqlClient.SqlError:
The log or differential backup can not be restored because no files are ready to rollforward.
(Microsoft.SqlServer.Smo)

Please help me to sort out the problem.

Regards,
Akbar
Superdoc
Superdoc
Valued Member
Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)

Group: General Forum Members
Points: 50 Visits: 814
You should not create a database and then try to restore, instead you should directly restore the database with NORECOVERY mode and finish restoring differentials and the last backup you restore WITH RECOVERY.
Jack Vamvas
Jack Vamvas
SSC Rookie
SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)

Group: General Forum Members
Points: 37 Visits: 329
The first step is to restore the Differential Base i.e the initial full backup with no recovery, then continue with the Differential.
To identify the relevant files via LSN numbers use the backupset and backupmediafamily tables for the full backup history of the db

Jack Vamvas
sqlserver-dba.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search