Link to home
Start Free TrialLog in
Avatar of yadavdep
yadavdepFlag for India

asked on

How to restore Diff and log backups to SQL server 2012 database

I had setup a Maintenance plan for my database as given below

1. Weekly FULL backup
2. Daily DIFF backup
3. LOG backup every 10 min


Now, client wants me to give some records which he by mistake overwritten using the application into the database.
He did this on Feb 20

Now, I have had restored the full backup dated Feb 15 to my local server.
And I am not able to restore the the differential or log backups I have for Feb 20 on this Database.
On the restore screen I am getting this error when I select either the differential or log backup
"unable to create restore plan due to break in the lsn chain".

 I am not sure how to restore the differential or log backups.

Need help here.
SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
from the above link:
 Unable to create restore plan due to break in the LSN chain
Recently one of my colleague was working on restoring a database in SQL Server 2012 and the process had one Full database backup and one Differential Backup.
At first everything worked when they try to restore the full database backup with "No Recovery" and when they are trying to restore the differential backup, they were facing an issue which states "Unable to create restore plan due to break in the LSN chain."


Then we tried restoring the database using T-SQL scripts and it worked.
If you notice the screenshot, The information for "Restore to:" is empty which was supposed to show the timelines.
This seems to be a bug with SSMS and to work around this issue,
Right click on "Databases" folder and Choose "Restore Files and Filegroups..."


Now choose the differential backup file and this will restore the differential backup.

Open in new window

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yadavdep

ASKER

Hi Vitor,

At the first place I did not do what you said in your comment, but after doing some Google then I came to know that I need to chose No_Recovery option.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's working now?
yes Vitor it works now,
thanks every one for your help