Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2015-02-22
7
Medium Priority
?
92 Views
Last Modified: 2015-02-25
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.
0
Comment
Question by:yadavdep
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 668 total points
ID: 40625168
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40625169
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
 
LVL 52

Accepted Solution

by:
Vitor Montalvão earned 668 total points
ID: 40625299
Did you restore the full backup with the NO_RECOVERY option?
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 

Author Comment

by:yadavdep
ID: 40628723
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
 
LVL 25

Assisted Solution

by:DBAduck - Ben Miller
DBAduck - Ben Miller earned 664 total points
ID: 40629471
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
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40630089
It's working now?
0
 

Author Comment

by:yadavdep
ID: 40631166
yes Vitor it works now,
thanks every one for your help
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question