Solved

Recover Database with DUMP and LDF File

Posted on 2014-01-09
1
266 Views
Last Modified: 2014-03-04
Hello,

     We are running SQL 2008 R2 and the recovery model is set to FULL. We backup the database and transaction log every night.

     If the database corrupts during the day can I restore the database from the previous night's backup and use the physical LDF file and perform a Point-In-Time restore right up to the point prior to corruption?
0
Comment
Question by:FNDAdmin
1 Comment
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 500 total points
ID: 39769708
Typically, yes.

You do a tail-log backup on the trans log FIRST, immediately after any corruption but BEFORE you run any restore, recovery, etc..  Only if you can't get a tail-log backup will you not be able to recover.

It's safer to run either a log backup or a db differential backup periodically if you need more assurance that you can recover further forward in time than just the last full backup.

Btw, it doesn't really help to do a t-log backup immediately before or after a full back -- instead, do your tranlog backups <nn> hours after the full backup, so that they give you additional recovery possibilities.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question