Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server Newbies
»
Can't restore transaction logs
14 posts, Page 1 of 2
1
2
»»
Can't restore transaction logs
Rate Topic
Display Mode
Topic Options
Author
Message
marygrace_laurente23
marygrace_laurente23
Posted Monday, November 12, 2012 1:58 AM
SSC Rookie
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:30 AM
Points: 27,
Visits: 124
Hi Everyone,
I cannot restore the transaction logs after restoring the full backup.
It shows the transaction log is too early to apply. I have the following scheduled jobs to take backup files.
10:30 PM - Full Backup
11:00 PM - Transaction log
12:00 AM - Transaction log
Can't restore the 11:00 PM transaction log.
The database has mirrored database also.
Hope to hear from you SQL pro.
Thanks in advance.
Post #1383553
anthony.green
anthony.green
Posted Monday, November 12, 2012 2:15 AM
SSCertifiable
Group: General Forum Members
Last Login: Wednesday, June 05, 2013 2:40 AM
Points: 5,075,
Visits: 4,833
Sounds like the full backups last LSN is after the 11pm transaction log backup.
Check msdb.dbo.backupset correlating the first & last LSN columns to get the restore order.
But in this case it will be 10:30 Full, 12:00 TXLog
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1383556
GilaMonster
GilaMonster
Posted Monday, November 12, 2012 6:04 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 12:59 AM
Points: 38,068,
Visits: 30,361
What time did the full backup complete? What's the message you get when you try to restore?
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1383646
marygrace_laurente23
marygrace_laurente23
Posted Monday, November 12, 2012 9:22 PM
SSC Rookie
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:30 AM
Points: 27,
Visits: 124
The full backup completed at 11:00 PM
Error:
System.Data.SqlClient.SqlError: The log in this backup set begins at LSN #, which is too recent to apply to the database. An earlier log backup that includes LSN # can be restored.
Thanks.
Post #1383937
GilaMonster
GilaMonster
Posted Tuesday, November 13, 2012 5:42 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 12:59 AM
Points: 38,068,
Visits: 30,361
marygrace_laurente23 (11/12/2012)
The full backup completed at 11:00 PM
Error:
System.Data.SqlClient.SqlError: The log in this backup set begins at LSN #, which is too recent to apply to the database. An earlier log backup that includes LSN # can be restored.
Ah, in that case there's an earlier log backup that needs to be applied first. Perhaps one that ran at 10:30?
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1384043
marygrace_laurente23
marygrace_laurente23
Posted Tuesday, November 13, 2012 7:19 PM
SSC Rookie
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:30 AM
Points: 27,
Visits: 124
We don't have 10:30 PM transaction log.
What we is hourly transaction log backup.
10:00 PM - Transaction Log
10:30 PM - Full Backup (every day)
11:00 PM - Transaction Log
12:00 AM - Transaction Log onwards
Post #1384367
GilaMonster
GilaMonster
Posted Wednesday, November 14, 2012 12:01 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 12:59 AM
Points: 38,068,
Visits: 30,361
Then you need to restore the 10PM transaction log.
As the error said "The log in this backup set begins at LSN #, which is too recent to apply to the database.
An earlier log backup
that includes LSN #
can be restored
. "
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1384411
marygrace_laurente23
marygrace_laurente23
Posted Wednesday, November 14, 2012 6:34 PM
SSC Rookie
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:30 AM
Points: 27,
Visits: 124
Tried already to restore the 10 PM transaction log but showing same error.
Post #1384946
anthony.green
anthony.green
Posted Thursday, November 15, 2012 1:32 AM
SSCertifiable
Group: General Forum Members
Last Login: Wednesday, June 05, 2013 2:40 AM
Points: 5,075,
Visits: 4,833
Then you must be using an earlier full backup and not the current one from the latest 10:30 backup.
Check through the backupset table and correlate which log file it is wanting you to restore using the LSN columns and the LSN that the restore error message is giving you.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1384999
GilaMonster
GilaMonster
Posted Thursday, November 15, 2012 3:42 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 12:59 AM
Points: 38,068,
Visits: 30,361
anthony.green (11/15/2012)
Then you must be using an earlier full backup and not the current one from the latest 10:30 backup.
Yup.
A backup that starts at 10:30 and finishes at 11:30 may well need the tran log backup from 10:00 and the one from 11:00 (plus all later), but it could not need any from before that.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1385054
« Prev Topic
|
Next Topic »
14 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.