<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Restore Sequence and Understanding NORECOVERY and RECOVERY</title>
	<atom:link href="http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Wed, 17 Mar 2010 03:19:03 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ravi</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-62185</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Thu, 04 Mar 2010 15:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-62185</guid>
		<description>Hi Pinal,

yes i understand i cant use standby clause. Currently my db full backup restored using recovery mode so that the users can access the db after restoration. This happens on a weekend. Now we are unable to restore the  daily transactional logs as the DB is in the recovery mode. In this scenario we have following questions
1. how can we change the mode of the DB to No recovery?
2. Is there anyother way that we can restore the transaction logs when the DB is in recovery mode?
3. From some of the article i found out that, the transaction logs should be restored with &quot;no Recovery&quot; and the final transaction log should be restored with &quot;Recovery&quot;</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>yes i understand i cant use standby clause. Currently my db full backup restored using recovery mode so that the users can access the db after restoration. This happens on a weekend. Now we are unable to restore the  daily transactional logs as the DB is in the recovery mode. In this scenario we have following questions<br />
1. how can we change the mode of the DB to No recovery?<br />
2. Is there anyother way that we can restore the transaction logs when the DB is in recovery mode?<br />
3. From some of the article i found out that, the transaction logs should be restored with &#8220;no Recovery&#8221; and the final transaction log should be restored with &#8220;Recovery&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-62181</link>
		<dc:creator>Pinal Dave</dc:creator>
		<pubDate>Thu, 04 Mar 2010 13:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-62181</guid>
		<description>Hello Ravi,

You can not use WITH STANDBY clause to restore a SQL Server 2000 database in SQL Server 2005.
You would have to upgrade the source server to 2005.

Regards,
Pinal Dave</description>
		<content:encoded><![CDATA[<p>Hello Ravi,</p>
<p>You can not use WITH STANDBY clause to restore a SQL Server 2000 database in SQL Server 2005.<br />
You would have to upgrade the source server to 2005.</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravi</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-62169</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Thu, 04 Mar 2010 12:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-62169</guid>
		<description>Hi Pinal Dave,

We have a Production DB Server (SQL Server 2000) and Reporting DB Server  (SQL Server 2005)
Earlier both servers were having SQL 2000. But now they have upgraded Reporting DB Server to SQL 2005. 
Backup Process – We have a process which syncs 5 databases between Production and Reporting. Complete restore is taken on a weekly basis (Sunday) and transaction logs are taken on a daily basis.

After upgradation of Reporting server to SQL Server 2005, backup process is not running as expected.
We were able to restore the complete backup successfully  which happens weekly. But having some issues while restoring transaction logs.

While trying to restore the database and transaction logs , we have 3 status modes:
                Recovery             :               We can’t use it, as it does not allow to restore transaction logs. If transaction logs are not there, we can use it very well for complete backup.
                NoRecovery       :               It can be used to restore but again database is no useable. It will be in recovery mode.
                StandBy               :               In the old reporting server(SQL 2000), they were using StandBy mode.
     It is read-only mode. But we are not able to use it as it says a message “This backup cannot be restored using WITH STANDBY because a database upgrade 
     is needed. Reissue the RESTORE without WITH STANDBY.” 
    As backup is from SQL 2000, it can’t be restored on SQL 2005.

We have restored the complete backup which was done using “recovery” mode. If complete backup is done in “recovery” mode, it is not restoring transaction logs. 

Could you please help me out in resolving this issue</description>
		<content:encoded><![CDATA[<p>Hi Pinal Dave,</p>
<p>We have a Production DB Server (SQL Server 2000) and Reporting DB Server  (SQL Server 2005)<br />
Earlier both servers were having SQL 2000. But now they have upgraded Reporting DB Server to SQL 2005.<br />
Backup Process – We have a process which syncs 5 databases between Production and Reporting. Complete restore is taken on a weekly basis (Sunday) and transaction logs are taken on a daily basis.</p>
<p>After upgradation of Reporting server to SQL Server 2005, backup process is not running as expected.<br />
We were able to restore the complete backup successfully  which happens weekly. But having some issues while restoring transaction logs.</p>
<p>While trying to restore the database and transaction logs , we have 3 status modes:<br />
                Recovery             :               We can’t use it, as it does not allow to restore transaction logs. If transaction logs are not there, we can use it very well for complete backup.<br />
                NoRecovery       :               It can be used to restore but again database is no useable. It will be in recovery mode.<br />
                StandBy               :               In the old reporting server(SQL 2000), they were using StandBy mode.<br />
     It is read-only mode. But we are not able to use it as it says a message “This backup cannot be restored using WITH STANDBY because a database upgrade<br />
     is needed. Reissue the RESTORE without WITH STANDBY.”<br />
    As backup is from SQL 2000, it can’t be restored on SQL 2005.</p>
<p>We have restored the complete backup which was done using “recovery” mode. If complete backup is done in “recovery” mode, it is not restoring transaction logs. </p>
<p>Could you please help me out in resolving this issue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pramod</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-62074</link>
		<dc:creator>pramod</dc:creator>
		<pubDate>Wed, 03 Mar 2010 10:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-62074</guid>
		<description>It means a read only operational database is nothing but a database in stand by mode.</description>
		<content:encoded><![CDATA[<p>It means a read only operational database is nothing but a database in stand by mode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60883</link>
		<dc:creator>Pinal Dave</dc:creator>
		<pubDate>Tue, 09 Feb 2010 14:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60883</guid>
		<description>Hello Rashmi,

A database in recovey mode can be made accessible using STANDBY option. This option is usually used in log shipping to make the secondary database available.

Regards,
Pinal Dave</description>
		<content:encoded><![CDATA[<p>Hello Rashmi,</p>
<p>A database in recovey mode can be made accessible using STANDBY option. This option is usually used in log shipping to make the secondary database available.</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rashmi</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60843</link>
		<dc:creator>Rashmi</dc:creator>
		<pubDate>Mon, 08 Feb 2010 13:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60843</guid>
		<description>Hi Pinal,

When a transaction log recovery is running on the database with recovery mode, can th database be accessible to other users, for example can we fire a select query to the database? If yes then what is the process to do so? Since, we tried that when we were running the recovery on the DB and we parallely fired a select query, the recovery got aborted.

Please suggest.

Our aim is that when we are restoring the transaction log the database should be accessible to the users.

Thanks in advance!!</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>When a transaction log recovery is running on the database with recovery mode, can th database be accessible to other users, for example can we fire a select query to the database? If yes then what is the process to do so? Since, we tried that when we were running the recovery on the DB and we parallely fired a select query, the recovery got aborted.</p>
<p>Please suggest.</p>
<p>Our aim is that when we are restoring the transaction log the database should be accessible to the users.</p>
<p>Thanks in advance!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60738</link>
		<dc:creator>Pinal Dave</dc:creator>
		<pubDate>Fri, 05 Feb 2010 17:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60738</guid>
		<description>Hello Rashmi,

Once a database converted in RECOVERY mode, no more transaction log backup can be restored. You can not set a database back to NORECOVERY mode.
So to resotre more transactional log backups keep the database in NORECOERY mode.

Regards,
Pinal Dave</description>
		<content:encoded><![CDATA[<p>Hello Rashmi,</p>
<p>Once a database converted in RECOVERY mode, no more transaction log backup can be restored. You can not set a database back to NORECOVERY mode.<br />
So to resotre more transactional log backups keep the database in NORECOERY mode.</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rashmi</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60700</link>
		<dc:creator>Rashmi</dc:creator>
		<pubDate>Fri, 05 Feb 2010 09:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60700</guid>
		<description>I have to restore transcation logs to a secondary database every 30 minutes.Can i restore a transaction log backup when the database is in RECOVRY mode. ?  i dont want to set the database in NORECOVERY Mode each time i carry out the restoration process.</description>
		<content:encoded><![CDATA[<p>I have to restore transcation logs to a secondary database every 30 minutes.Can i restore a transaction log backup when the database is in RECOVRY mode. ?  i dont want to set the database in NORECOVERY Mode each time i carry out the restoration process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60603</link>
		<dc:creator>Ahmed</dc:creator>
		<pubDate>Wed, 03 Feb 2010 11:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60603</guid>
		<description>Thanks for the reply</description>
		<content:encoded><![CDATA[<p>Thanks for the reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60570</link>
		<dc:creator>Pinal Dave</dc:creator>
		<pubDate>Tue, 02 Feb 2010 18:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60570</guid>
		<description>Hello Ahmad,

A running database con not be changed to standby mode. Only a data in no-recovery state can be moved to standby mode. This is an option that is specified while restoring a database or transaction log.

Regards,
Pinal Dave</description>
		<content:encoded><![CDATA[<p>Hello Ahmad,</p>
<p>A running database con not be changed to standby mode. Only a data in no-recovery state can be moved to standby mode. This is an option that is specified while restoring a database or transaction log.</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60547</link>
		<dc:creator>Ahmed</dc:creator>
		<pubDate>Tue, 02 Feb 2010 10:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60547</guid>
		<description>How to change online db to standby mode</description>
		<content:encoded><![CDATA[<p>How to change online db to standby mode</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60533</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Tue, 02 Feb 2010 05:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60533</guid>
		<description>@Vivek.

When you restore a backup, you can choose from 3 restore option,
 
1. With Recovery - Database is ready to use, and user can connect to database, user can change data inside database. 

2. No Recovery -  Database is not ready, there are few more backups that has to be applied to this database instance. User cannot connect to database because it is in Restoring Status. (Exception: Not considering Database Snapshots )

3. Standby / Read Only - Database is ready to use but database is in Read Only mode, user can connect to database but they cannot change data inside database.


Now, if you have more backups to apply, definitely you want to choose with No Recovery Mode option when applying all your backups, and when you apply your last / final backup, then either you can restore with Recovery or Standby option.

~ IM.</description>
		<content:encoded><![CDATA[<p>@Vivek.</p>
<p>When you restore a backup, you can choose from 3 restore option,</p>
<p>1. With Recovery &#8211; Database is ready to use, and user can connect to database, user can change data inside database. </p>
<p>2. No Recovery &#8211;  Database is not ready, there are few more backups that has to be applied to this database instance. User cannot connect to database because it is in Restoring Status. (Exception: Not considering Database Snapshots )</p>
<p>3. Standby / Read Only &#8211; Database is ready to use but database is in Read Only mode, user can connect to database but they cannot change data inside database.</p>
<p>Now, if you have more backups to apply, definitely you want to choose with No Recovery Mode option when applying all your backups, and when you apply your last / final backup, then either you can restore with Recovery or Standby option.</p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-60491</link>
		<dc:creator>Vivek</dc:creator>
		<pubDate>Mon, 01 Feb 2010 10:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-60491</guid>
		<description>Hi Pinal,
             Can&#039;t we use the Standby Option when we restore the database so that we can apply the differential and log backups to bring the database into consistent state.


Regards
Vivek Singh</description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
             Can&#8217;t we use the Standby Option when we restore the database so that we can apply the differential and log backups to bring the database into consistent state.</p>
<p>Regards<br />
Vivek Singh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-58631</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 14 Dec 2009 19:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-58631</guid>
		<description>What if the last successful restore was completed in NORECOVERY, then you discover the final differential backup is corrupted... Can simply set the database to operational mode (truncating any open logs) or do you have to do something spectactular?

Thx!!!!</description>
		<content:encoded><![CDATA[<p>What if the last successful restore was completed in NORECOVERY, then you discover the final differential backup is corrupted&#8230; Can simply set the database to operational mode (truncating any open logs) or do you have to do something spectactular?</p>
<p>Thx!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MARCOS</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-57130</link>
		<dc:creator>MARCOS</dc:creator>
		<pubDate>Thu, 29 Oct 2009 06:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-57130</guid>
		<description>THIS IS WHAT PINAL TOLD US:

READ AGAIN:

-- Repeat this till you restore last log backup
RESTORE DATABASE DATABASE WITH RECOVERY;

ALLWAYS THE LAST WILL BE WITH RECOVERY.

AND NEVER FORGET TO VERIFY ONLY YOUR BACKUP FILES BEFORE RESTORING.


REGARDS,
MARCOS ROSA</description>
		<content:encoded><![CDATA[<p>THIS IS WHAT PINAL TOLD US:</p>
<p>READ AGAIN:</p>
<p>&#8211; Repeat this till you restore last log backup<br />
RESTORE DATABASE DATABASE WITH RECOVERY;</p>
<p>ALLWAYS THE LAST WILL BE WITH RECOVERY.</p>
<p>AND NEVER FORGET TO VERIFY ONLY YOUR BACKUP FILES BEFORE RESTORING.</p>
<p>REGARDS,<br />
MARCOS ROSA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajiv Singh</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-55224</link>
		<dc:creator>Rajiv Singh</dc:creator>
		<pubDate>Wed, 26 Aug 2009 06:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-55224</guid>
		<description>Hi Pinal,

For recovery process as you wrote a code 

RESTORE DATABASE DATABASE FROM full_database_backup WITH NORECOVERY;
RESTORE DATABASE DATABASE FROM differential_backup WITH NORECOVERY;
RESTORE LOG DATABASE FROM log_backup WITH NORECOVERY;

But as My experiance, The last lag_backup must be WITH RECOVERY mode

RESTORE DATABASE COREDATA FROM DISK=&#039;H:\CDATA\FULL_CoreData.bak&#039; WITH REPLACE, NORECOVERY; 
RESTORE DATABASE COREDATA FROM DISK=&#039;H:\CDATA\DIFF_CDATA.BAK&#039; WITH REPLACE, NORECOVERY;
RESTORE DATABASE COREDATA FROM DISK=&#039;H:\CDATA\CDATA_tail.bak&#039; WITH REPLACE, RECOVERY;

With Regards,
Rajiv Singh</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>For recovery process as you wrote a code </p>
<p>RESTORE DATABASE DATABASE FROM full_database_backup WITH NORECOVERY;<br />
RESTORE DATABASE DATABASE FROM differential_backup WITH NORECOVERY;<br />
RESTORE LOG DATABASE FROM log_backup WITH NORECOVERY;</p>
<p>But as My experiance, The last lag_backup must be WITH RECOVERY mode</p>
<p>RESTORE DATABASE COREDATA FROM DISK=&#8217;H:\CDATA\FULL_CoreData.bak&#8217; WITH REPLACE, NORECOVERY;<br />
RESTORE DATABASE COREDATA FROM DISK=&#8217;H:\CDATA\DIFF_CDATA.BAK&#8217; WITH REPLACE, NORECOVERY;<br />
RESTORE DATABASE COREDATA FROM DISK=&#8217;H:\CDATA\CDATA_tail.bak&#8217; WITH REPLACE, RECOVERY;</p>
<p>With Regards,<br />
Rajiv Singh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kuldip</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-53757</link>
		<dc:creator>Kuldip</dc:creator>
		<pubDate>Thu, 16 Jul 2009 11:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-53757</guid>
		<description>Really nice article.
Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Really nice article.<br />
Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aasim</title>
		<link>http://blog.sqlauthority.com/2009/07/15/sql-server-restore-sequence-and-understanding-norecovery-and-recovery/#comment-53722</link>
		<dc:creator>aasim</dc:creator>
		<pubDate>Wed, 15 Jul 2009 10:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5895#comment-53722</guid>
		<description>tipo mistake

&quot;which can create itegrity issues&quot;
-----------------
integrity</description>
		<content:encoded><![CDATA[<p>tipo mistake</p>
<p>&#8220;which can create itegrity issues&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
integrity</p>
]]></content:encoded>
	</item>
</channel>
</rss>
