﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by free mascot  / Restore of the Database / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 15:46:14 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>[quote][b]Iggy (1/21/2009)[/b][hr][quote][b]igorg (1/21/2009)[/b][hr]I agree with Warren. In MSDN its clearly written that msdb.restorehistory contains one row for each restore operation. For VERIFYONLY restore option column [restore_type] will contain 'V'V = Verifyonly[/quote]RESTORE VERIFYONLY can write to history system table if you specify LOADHISTORY option. The question doesn't mention this at all, so the answer is No.[/quote]No. it's a stupid question and the correct answer "Only if LOADHISTORY" is specified isn't available.  </description><pubDate>Tue, 23 Jun 2009 08:26:52 GMT</pubDate><dc:creator>L' Eomot Inversé</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>[quote][b]igorg (1/21/2009)[/b][hr]I agree with Warren. In MSDN its clearly written that msdb.restorehistory contains one row for each restore operation. For VERIFYONLY restore option column [restore_type] will contain 'V'V = Verifyonly[/quote]RESTORE VERIFYONLY can write to history system table if you specify LOADHISTORY option. The question doesn't mention this at all, so the answer is No.</description><pubDate>Wed, 21 Jan 2009 15:23:46 GMT</pubDate><dc:creator>Iggy-SQL</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>I agree with Warren. In MSDN its clearly written that msdb.restorehistory contains one row for each restore operation. For VERIFYONLY restore option column [restore_type] will contain 'V'V = Verifyonly</description><pubDate>Wed, 21 Jan 2009 13:14:19 GMT</pubDate><dc:creator>igorg</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>The question probably should have said that RESTORE VERIFYONLY doesn't write to the msdb.dbo.restorehistory by default.  But there is the LOADHISTORY parameter that will make it so.</description><pubDate>Wed, 21 Jan 2009 07:48:23 GMT</pubDate><dc:creator>Cliff Jones</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>Why is verify history needed? I've never used this on the same server since backups are usually known quantities. It's on a DR server I might check since I don't have backup history.</description><pubDate>Wed, 21 Jan 2009 07:23:45 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>[quote][b]Steven Cameron (1/21/2009)[/b][hr]I got the question wrong, but after searching some more found out I WAS wrong. It would put the information into the restorehistory table if you used the LOADHISTORY option. which wasn't used in the question.http://msdn.microsoft.com/en-us/library/ms178615.aspx[/quote]Interesting.  I missed that option when I read it the first time.  It's sometimes handy to see restores in that table just to see who did what and when.  But I wonder what use there would be for keeping a record of restore verifyonly executions?  The only think I can think of is a senior DBA checking up on a jr. dba making sure they run restore verifyonly before running the real restore?  But even that seems like a stretch.</description><pubDate>Wed, 21 Jan 2009 07:16:40 GMT</pubDate><dc:creator>Jason Shadonix</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>I got the question wrong, but after searching some more found out I WAS wrong. It would put the information into the restorehistory table if you used the LOADHISTORY option. which wasn't used in the question.http://msdn.microsoft.com/en-us/library/ms178615.aspx</description><pubDate>Wed, 21 Jan 2009 07:11:12 GMT</pubDate><dc:creator>Steven Cameron</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>I agree with Warren as well.  I originally thought the answer was NO until I read the restorehistory docs which have a verifyonly entry, so I answered YES which came back as incorrect to my suprise.ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_6tsql/html/9140ecc1-d912-4d76-ae70-e2a857da6d44.htmCould someone explain when the V = Verifyonly entry would be used for if there is NOT an entry made in this table with a RESTORE VERIFYONLY?Thanks!</description><pubDate>Wed, 21 Jan 2009 06:41:39 GMT</pubDate><dc:creator>dgabele</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>I must be pretty bored today.  I just tried it on both SQL 2005 and 2008, and niether wrote a record to the restorehistory table.  One interesting thing I did observe... The backup file I used to play with was a backup of a database with several filegroups that live on different drives in production.  On the dev box I was using that only has one, it actually spit out the same error message a regular restore does when you don't use the WITH MOVE clause to tell where you want those files to go.  I found that slightly cool.</description><pubDate>Wed, 21 Jan 2009 06:40:08 GMT</pubDate><dc:creator>Jason Shadonix</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>This answer is wrong.  Just because SQL does not actually perform the backup, doesn't mean it won't store information about the RESTORE command.  In that table, there's a restore_type that could be verifyonly: restore_type	char(1)	Type of restore operation:D = DatabaseF = FileG = FilegroupI = DifferentialL = LogV = VerifyonlyR = RevertCan be NULL.</description><pubDate>Wed, 21 Jan 2009 06:15:46 GMT</pubDate><dc:creator>Lisa Phillip</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>I agree with Warren. I read the same BOL article and that's why I answered YES.By the way, the MSDN article quoted to justify NO being the correct answer doesn't even mention the msdb.dbo.restorehistory table.</description><pubDate>Wed, 21 Jan 2009 04:28:50 GMT</pubDate><dc:creator>Jan Van der Eecken</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>So why does the documentation for the restorehistory table  show a setting of 'V' = Verifyonly for column restore_type?http://msdn.microsoft.com/en-us/library/ms187408.aspx</description><pubDate>Wed, 21 Jan 2009 03:13:04 GMT</pubDate><dc:creator>Warren Gilbert</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>Not that obvious. ;)</description><pubDate>Wed, 21 Jan 2009 01:12:51 GMT</pubDate><dc:creator>ChiragNS</dc:creator></item><item><title>RE: Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>Obvious!</description><pubDate>Wed, 21 Jan 2009 00:52:44 GMT</pubDate><dc:creator>Carlo Romagnano</dc:creator></item><item><title>Restore of the Database</title><link>http://www.sqlservercentral.com/Forums/Topic640366-1461-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/Restore/65450/"&gt;Restore of the Database&lt;/A&gt;[/B]</description><pubDate>Tue, 20 Jan 2009 21:16:57 GMT</pubDate><dc:creator>free_mascot</dc:creator></item></channel></rss>