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.
yadavdepAsked:
Who is Participating?
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
Did you restore the full backup with the NO_RECOVERY option?
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
yadavdepAuthor Commented:
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.
0
 
DBAduck - Ben MillerPrincipal ConsultantCommented:
Yes, in order to restore anything past Full backup, you need to check the box NO RECOVERY or the command on the RESTORE DATABASE command is WITH NORECOVERY.
0
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
It's working now?
0
 
yadavdepAuthor Commented:
yes Vitor it works now,
thanks every one for your help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.