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
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by Lynn Pettis
»
Backups
59 posts, Page 1 of 6
1
2
3
4
5
»
»»
Backups
Rate Topic
Display Mode
Topic Options
Author
Message
Lynn Pettis
Lynn Pettis
Posted Thursday, April 29, 2010 9:59 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 8:42 AM
Points: 21,832,
Visits: 27,857
Comments posted to this topic are about the item
Backups
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #913383
java56p
java56p
Posted Thursday, April 29, 2010 10:21 PM
SSChasing Mays
Group: General Forum Members
Last Login: Wednesday, October 12, 2011 8:38 PM
Points: 646,
Visits: 43
Lynn Pettis (4/29/2010)
Comments posted to this topic are about the item
<A HREF="/questions/Backup/69903/">Backups</A>
I think the answer is wrong, in my opinion the right one is:
Restore Tuesday nights full backup with norecovery.
Restore the latest differential backup, Wednesday @ 8:00 AM, with norecovery.
Restore all transaction log backups taken since the latest differential backup restored with norecovery.
Restore the tail-log backup with recovery.
Post #913388
awoodhouse
awoodhouse
Posted Thursday, April 29, 2010 10:34 PM
Old Hand
Group: General Forum Members
Last Login: Thursday, February 21, 2013 3:46 PM
Points: 354,
Visits: 170
The question threw me off. Tuesday @ 4pm is not the 'latest differential backup'. Wednesday 8am is.
Post #913396
Lynn Pettis
Lynn Pettis
Posted Thursday, April 29, 2010 10:52 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 8:42 AM
Points: 21,832,
Visits: 27,857
java56p (4/29/2010)
Lynn Pettis (4/29/2010)
Comments posted to this topic are about the item
<A HREF="/questions/Backup/69903/">Backups</A>
I think the answer is wrong, in my opinion the right one is:
Restore Tuesday nights full backup with norecovery.
Restore the latest differential backup, Wednesday @ 8:00 AM, with norecovery.
Restore all transaction log backups taken since the latest differential backup restored with norecovery.
Restore the tail-log backup with recovery.
Reread the question, Tuesday nights full backup file is corrupt, how do you recover to 9:00 AM on Wednesday?
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #913402
Lynn Pettis
Lynn Pettis
Posted Thursday, April 29, 2010 10:53 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 8:42 AM
Points: 21,832,
Visits: 27,857
awoodhouse (4/29/2010)
The question threw me off. Tuesday @ 4pm is not the 'latest differential backup'. Wednesday 8am is.
Reread the question, you are using the Full backp from Monday, what is the latest differential backup?
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #913403
awoodhouse
awoodhouse
Posted Thursday, April 29, 2010 11:00 PM
Old Hand
Group: General Forum Members
Last Login: Thursday, February 21, 2013 3:46 PM
Points: 354,
Visits: 170
Depends on your point of view. If i were selecting from a list of files on the file system sorted by date created, the most recent one would be Wednesday 8am.
Edit:
Since we are restoring backup files, the file system would be the point of view considered.
Post #913406
java56p
java56p
Posted Thursday, April 29, 2010 11:06 PM
SSChasing Mays
Group: General Forum Members
Last Login: Wednesday, October 12, 2011 8:38 PM
Points: 646,
Visits: 43
Lynn Pettis (4/29/2010)
Comments posted to this topic are about the item
<A HREF="/questions/Backup/69903/">Backups</A>
Yes You are right, I did not read the question completely. Then my answer is wrong.
Post #913412
Lynn Pettis
Lynn Pettis
Posted Thursday, April 29, 2010 11:26 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 8:42 AM
Points: 21,832,
Visits: 27,857
awoodhouse (4/29/2010)
Depends on your point of view. If i were selecting from a list of files on the file system sorted by date created, the most recent one would be Wednesday 8am.
Edit:
Since we are restoring backup files, the file system would be the point of view considered.
Wrong, you have to use the most recent differential backup based on the full backup file you are restoring, not just the most recent differential taken. Remember the full backup starts the base for subsequent differential backups.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #913422
SQLRNNR
SQLRNNR
Posted Thursday, April 29, 2010 11:41 PM
SSCoach
Group: General Forum Members
Last Login: Today @ 8:39 AM
Points: 18,856,
Visits: 12,440
Thanks Lynn.
The part that gets me with these questions is if the hardware failure was enough to corrupt the database and the full backup - it would seem to me that you would be unable to perform a tail log backup. After all the failure had to be severe enough that it was able to corrupt files on different drives / luns. Thus I always have to step back and think a little more about it. It must not have been too severe of a hardware failure because the database was able to be brought back online.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #913430
Lynn Pettis
Lynn Pettis
Posted Friday, April 30, 2010 12:04 AM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 8:42 AM
Points: 21,832,
Visits: 27,857
CirquedeSQLeil (4/29/2010)
Thanks Lynn.
The part that gets me with these questions is if the hardware failure was enough to corrupt the database and the full backup - it would seem to me that you would be unable to perform a tail log backup. After all the failure had to be severe enough that it was able to corrupt files on different drives / luns. Thus I always have to step back and think a little more about it. It must not have been too severe of a hardware failure because the database was able to be brought back online.
Actually, the basis of this question was not from a real world failure, but based on several posts here on SSC where people were truncating the t-log just prior to a full backup or simply truncating the t-log as a part of normal processing. I wanted to show why you don't necessarily want to to do things like that.
In this particular case, how would you recover to 9:00 AM Wednesday if you truncated the t-log just before the Tuesday night full backup and later discovered that the backup file was corrupt?
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #913448
« Prev Topic
|
Next Topic »
59 posts, Page 1 of 6
1
2
3
4
5
»
»»
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.