January 18, 2011 at 3:16 pm
Great question.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
January 19, 2011 at 2:52 am
Interesting, that the documentation (or at least the page referenced in this question) never once mentions filegroup restore. I thought that filegroup restore was possible, but (since DBA is not my primary task) decided to check BOL first. I came across the exact page referenced in the answer, noticed no mention of restoring at the filegroup level, so decided to untick this option.
Ah well. Points lost, but lesson learned - now I hope I'll never have the opportunity to reinforce this knowledge in my job. 😉
January 19, 2011 at 3:06 am
Hugo Kornelis (1/19/2011)
Interesting, that the documentation (or at least the page referenced in this question) never once mentions filegroup restore.
http://msdn.microsoft.com/en-us/library/ms186858%28v=sql.90%29.aspx
About 1/3 of the way down:
SQL Server 2005 supports a variety of restore scenarios:
* Complete database restore
Restores the entire database, beginning with a full database backup, which may be followed by restoring a differential database backup (and log backups). For more information, see Performing a Complete Database Restore (Simple Recovery Model) or Performing a Complete Database Restore (Full Recovery Model).
* File restore
Restores a file or filegroup in a multi-filegroup database. Note that under the simple recovery model, the file must belong to a read-only filegroup. After a full file restore, a differential file backup can be restored. For more information, see Performing File Restores (Full Recovery Model) and Performing File Restores (Simple Recovery Model).
* Page restore
Restores individual pages. Page restore is available only under the full and bulk-logged recovery models. For more information, see Performing Page Restores.
Also http://msdn.microsoft.com/en-us/library/ms178615%28v=sql.90%29.aspx under the heading "<file_or_filegroup_or_page>"
It's not particularly clear or obvious.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 19, 2011 at 3:42 am
Thanks, Gail.
So apparently, the documentation is not incomplete, it just hides it's completeness very well 😉
January 19, 2011 at 8:36 am
Hugo Kornelis (1/19/2011)
Thanks, Gail.So apparently, the documentation is not incomplete, it just hides it's completeness very well 😉
I think more that it's poorly written. I miss the "submit a note" item at the top right for the online BOL
January 20, 2011 at 6:57 am
Bit pedantic I know, but Gail is quoting 2005 documentation and the question was 2008 R2 specific. The referenced documentation initially states database, data file and data page as supported data restore levels (which is how I missed file group :crying:) - however, in the 'Restore Scenarios' section, file groups are mentioned under 'Piecemeal restore'. Serves me right for not reading the whole page before answering the question 😀
January 20, 2011 at 7:11 am
Steve Jones - SSC Editor (1/19/2011)
I miss the "submit a note" item at the top right for the online BOL
So do I. Unfortunate that a large percentage of the submissions where hate mail or links to sites selling p#n%$ enlargement.
January 20, 2011 at 7:17 am
GilaMonster (1/17/2011)
SanDroid (1/17/2011)
Not certain who is learning.Restoring a group of pages can restore an extent.
There is no RESTORE DATABASE ... EXTENT command. There is a RESTORE DATABASE ... FILEGROUP, a RESTORE DATABASE ... FILE and a RESTORE DATABASE ... PAGE
That is understood an not relevant in the least to my point.
The question was the types of restore supported, not the restore commands supported. Wording is everyting in a question and it's answer.
When you have "database extent corrupted or unavailable" errors you use RESTORE PAGE to resolve it.
I guess the fact that I had to do this to a database altered my perception of what would be the correct answer.
January 20, 2011 at 9:39 am
SanDroid (1/20/2011)
That is understood an not relevant in the least to my point.The question was the types of restore supported, not the restore commands supported. Wording is everyting in a question and it's answer.
When you have "database extent corrupted or unavailable" errors you use RESTORE PAGE to resolve it.
I guess the fact that I had to do this to a database altered my perception of what would be the correct answer.
If you took that wording to mean how can I extend things to restore an extent, I think you are misreading the question yourself. You are overthinking the process.
Restoring an extent is not possible. Restoring pages to rebuild an extend is possible, but that's not the same thing. Saying this is the same is playing with semantics.
January 21, 2011 at 3:40 pm
Thanks for the question!
January 23, 2011 at 6:25 pm
Steve Jones - SSC Editor (1/20/2011)
SanDroid (1/20/2011)
That is understood an not relevant in the least to my point.The question was the types of restore supported, not the restore commands supported. Wording is everyting in a question and it's answer.
When you have "database extent corrupted or unavailable" errors you use RESTORE PAGE to resolve it.
I guess the fact that I had to do this to a database altered my perception of what would be the correct answer.
If you took that wording to mean how can I extend things to restore an extent, I think you are misreading the question yourself. You are overthinking the process.
Restoring an extent is not possible. Restoring pages to rebuild an extend is possible, but that's not the same thing. Saying this is the same is playing with semantics.
My point was that resotration of an Extent is something paossible using page restores, just like piecmeal restores offer us other possibilities. This is something that does not seem to be well understood. I apreciate the fact that you do. 😀
January 24, 2011 at 1:51 pm
Tom.Thomson (1/15/2011)
Nice easy question, nice clean answer.But why on earth is it worth 2 points?
That's because 1% of total answered still are not sure about full backup restores. I understand if some people miss file restores as they are not regular job but, people still are out there that believes FULL backup restore is not possible.
what types of restores are possible?
SQL DBA.
February 7, 2011 at 4:44 am
Good question.
I don't know that we can restore single page as well.
Thanks for the question & nice discussion about the topic.
Thanks
March 5, 2012 at 8:21 am
Nice question and tricky topic to many, especially beginners and it is well explained.
Thanks.
Viewing 14 posts - 16 through 28 (of 28 total)
You must be logged in to reply to this topic. Login to reply