30.06.2013 Views

SQL Server Backup and Restore - Simple Talk

SQL Server Backup and Restore - Simple Talk

SQL Server Backup and Restore - Simple Talk

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6: Log <strong>Restore</strong>s<br />

Missing or corrupt full backup<br />

If we find that the latest full backup file, on which we planned to base a RESTORE<br />

operation, is missing or corrupt, then there is still hope that we can perform our point-intime<br />

restore. Full backups do not break the log chain, <strong>and</strong> each log backup contains all the<br />

log records since the last log backup, so we can restore the previous good full backup <strong>and</strong><br />

then restore the full chain of log files extending from this full backup up to the desired<br />

point of recovery.<br />

However, this is not a reason to skip full backups, or to adopt a cavalier attitude towards<br />

full backup failures. When performing a restore operation, the greatest chance of success<br />

comes when that operation involves the smallest number of files possible. The more files<br />

we have to restore, the greater the chance of failure.<br />

Minimally logged operations<br />

In Chapter 5, we discussed briefly the fact that it is not possible to restore a database to a<br />

point in time within a log file that contains minimally logged operations, recorded while<br />

the database was operating in the BULK_LOGGED recovery model. In order to visualize<br />

this, Figure 6-1 depicts an identical backup timeline for two databases, each of which we<br />

wish to restore to the same point in time (represented by the arrow). The green bar represents<br />

a full database backup <strong>and</strong> the yellow bars represent a series of log backups. The<br />

only difference between the two databases is that the first is operating in FULL recovery<br />

model, <strong>and</strong> the second in BULK LOGGED.<br />

184

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!