<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx</link><description>This is really basic, but so often overlooked and misunderstood. Basically, we have a database, and something goes south. Can we restore all the way up to that point? I.e., even if the last backup (db or log) is earlier than the disaster? Yes, of course</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#23803</link><pubDate>Sat, 27 Mar 2010 16:36:24 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23803</guid><dc:creator>Hobbes</dc:creator><description>&lt;p&gt;Thank you for a great article. I'm a newbie and this really helps me a lot.&lt;/p&gt;
&lt;p&gt;But, if I have a mirroring configuration, with 2 hard disks, and this would mean that each hard disk would have the mdf and ldf files of my database. If any one of my hard disk crashes I can easily let the other hard disk take over. Does this mean the same as point-in-time recovery, and that I do not need to do any log backups?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#23805</link><pubDate>Sat, 27 Mar 2010 18:11:10 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23805</guid><dc:creator>Mohd Sufian</dc:creator><description>&lt;p&gt;Great Stuff , Great learning.&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#23806</link><pubDate>Sat, 27 Mar 2010 18:33:50 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23806</guid><dc:creator>TiborKaraszi</dc:creator><description>&lt;p&gt;Thanks, glad you liked it. :-)&lt;/p&gt;
&lt;p&gt;Hobbes: No, I think you have a couple of things a bit backwards. &lt;/p&gt;
&lt;p&gt;First, you mention mirroring, but not at what level (could be RAID level, could be some SAN stuff, could be database mirroring as implemented in SQL Server). So, it is difficult to be precise in answer without knowing more about your proposed solution.&lt;/p&gt;
&lt;p&gt;Second: If you ever expect to do point in time restore, or up-to-minute restore (whatever you want to call it), you *need* to do log backups. First, the ldf file can be lost or corrupt, meaning that your backups are all you have! Second, if you don't do log backups, nothing will empty the log and you will have huge ldf file after a while. &lt;/p&gt;
&lt;p&gt;You mention you are a newbie. That is fine, we all were at some point. Might I suggest a good reference, but oftern overlooked: Books Online. It has good elaborations on the topic, even complemented with nice diagrams etc. For instance:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms190217.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms190217.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#23811</link><pubDate>Sun, 28 Mar 2010 05:13:16 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23811</guid><dc:creator>Hobbes</dc:creator><description>&lt;p&gt;TiborKaraszi, thank you for your kind reply. I'm actually referring to a raid 1 mirroring setup. So I'm thinking since I have redundancy this way, maybe I can just use simple recovery model and skip the log backups.&lt;/p&gt;
&lt;p&gt;But you mentioned that there is a possibility that the database files (mdf or ldf or both) could be corrupted. So there's a risk.&lt;/p&gt;
&lt;p&gt;I will also read more about this in the Books Online. If you have any more advice for me regarding this scenario I mentioned, I'd appreciate it.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#23812</link><pubDate>Sun, 28 Mar 2010 05:20:09 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23812</guid><dc:creator>Uri Dimant</dc:creator><description>&lt;p&gt;Hi Tibor&lt;/p&gt;
&lt;p&gt;Great, I always tried to create the database wuth &amp;nbsp;same database name and same filename... learned &amp;nbsp;something today...&lt;/p&gt;
&lt;p&gt;Interesting in how does it work , I think the key work is NO_TRUNCATE... here&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#23814</link><pubDate>Sun, 28 Mar 2010 07:20:36 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23814</guid><dc:creator>TiborKaraszi</dc:creator><description>&lt;p&gt;Hi Uri,&lt;/p&gt;
&lt;p&gt;Exactly. What we do is to produce a damaged database, but on a different instance than the originating instance. And when you want to do a log backup for a damaged database, you use the NO_TRUNCATE option. :-)&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#23819</link><pubDate>Sun, 28 Mar 2010 22:32:46 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23819</guid><dc:creator>James Luetkehoelter</dc:creator><description>&lt;p&gt;Kudos Tibor - we need more post like this that visit some (seemingly) very basic things. There's a wealth of people with the responsibility to perform these functions with little or no understanding on how to do it.&lt;/p&gt;
&lt;p&gt;One with with blog posts is that I find people often wanting to talk about something relatively advanced or esoteric, and in turn those with very little experience cling to small piece of wisdom or bon mots as if they were gospel. The results are rarely pleasant.&lt;/p&gt;
&lt;p&gt;Please keep up with these types of posts - and everyone else I encourage you to speak more to the majority than our peers.&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#23859</link><pubDate>Tue, 30 Mar 2010 11:34:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:23859</guid><dc:creator>dugi</dc:creator><description>&lt;p&gt;Nice job, Tibor!&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#24061</link><pubDate>Mon, 05 Apr 2010 15:26:56 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:24061</guid><dc:creator>James</dc:creator><description>&lt;p&gt;Hi Hobbes,&lt;/p&gt;
&lt;p&gt;My advice is, &amp;quot;Don't skip the backups.&amp;quot; RAID mirroring is a great technology, but ultimately you can still have failures other than single disk outages. I've had mirrors get damaged by a RAID controller failure. I've also had a mirror where both disks came from a bad batch and failed. While both of these scenarios are admittedly rare, both have happened to me in the course of my career. Also, this doesn't even cover other ugly scenarios like a virus getting on to the server, etc. Ultimately the degrees of redundancy and type of technologies that you choose come down to a risk assessment. How much chance of a data loss are you willing to accept?&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#24066</link><pubDate>Mon, 05 Apr 2010 16:36:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:24066</guid><dc:creator>bblack</dc:creator><description>&lt;p&gt;Great tip. &amp;nbsp;I would not have thought this would work. I have learned.&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#24091</link><pubDate>Tue, 06 Apr 2010 07:17:25 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:24091</guid><dc:creator>Swaroop</dc:creator><description>&lt;p&gt;Thanks for sharing TiborKaraszi...&lt;/p&gt;
&lt;p&gt;Nice research for making it understandable to newbies like me with all the basic terms.&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#24350</link><pubDate>Fri, 16 Apr 2010 15:20:40 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:24350</guid><dc:creator>Zafer</dc:creator><description>&lt;p&gt;Very helpful. Thank you.&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#28040</link><pubDate>Thu, 19 Aug 2010 07:23:26 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:28040</guid><dc:creator>Alex Feng</dc:creator><description>&lt;p&gt;This blog post is great and useful. Thnaks Tibor!&lt;/p&gt;
</description></item><item><title>re: Restore database to the point of disaster</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2010/03/27/restore-database-to-the-point-of-disaster.aspx#38594</link><pubDate>Tue, 20 Sep 2011 14:46:11 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:38594</guid><dc:creator>Hey Tibor</dc:creator><description>&lt;p&gt;I am looking for job in SQL Server as DBA. so today i have done one interview. in that they asked few questions like,&lt;/p&gt;
&lt;p&gt;01. how to do point in time recovery in following situation.&lt;/p&gt;
&lt;p&gt;Weekly Full Backup at 11:30 PM&lt;/p&gt;
&lt;p&gt;Daily Deferential Backup at 12:00 Mid Night&lt;/p&gt;
&lt;p&gt;Every 60 Minuts Transaction Log Backup.&lt;/p&gt;
&lt;p&gt;One day database got crashed at 9:30 in the morning.&lt;/p&gt;
&lt;p&gt;all the backups are in secured disk, so tell me how to do PIR without loosing that 30 Mins Data.&lt;/p&gt;
&lt;p&gt;02. Why we need to create only one clustered index for each table why con't we create more clustered indexes as Non Clustered Indexes.&lt;/p&gt;
&lt;p&gt;03. There is a Database which is configured for Mirroring it has High Protection Mode. Now the client want to change from High Protection mode to High Performance Mode without disturbing the Mirroring.&lt;/p&gt;
&lt;p&gt;Please tell me the answers.&lt;/p&gt;
</description></item></channel></rss>