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 />

Right-click on DatabaseForLog<strong>Backup</strong>s in the object explorer <strong>and</strong> select Tasks |<br />

<strong>Restore</strong> | Database… to begin the restore process <strong>and</strong> you'll see the <strong>Restore</strong> Database<br />

screen, which we examined in detail in Chapter 4.<br />

This time, rather than restore directly over an existing database, we'll restore to a new<br />

database, basically a copy of the existing DatabaseForLog<strong>Backup</strong>s but as it existed<br />

at the end of the first log backup. So, in the To database: section, enter a new database<br />

name, such as DatabaseForLog<strong>Backup</strong>s_<strong>Restore</strong>Copy.<br />

In the Source for restore section of the screen, you should see that the required backup<br />

files are auto-populated (<strong>SQL</strong> <strong>Server</strong> can interrogate the msdb database for the backup<br />

history). This will only be the case if all the backup files are in their original location (C:\<br />

<strong>SQL</strong><strong>Backup</strong>s\Chapter5, if you followed through the examples). Therefore, as configured<br />

in Figure 6-3, our new copy database would be restored to the end of the second log<br />

backup, in a single restore operation. Alternatively, by simply deselecting the second log<br />

file, we could restore the database to the end of the first log file.<br />

Figure 6-3: Initial <strong>Restore</strong> Database screen for DatabaseForLog<strong>Backup</strong>s.<br />

189

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

Saved successfully!

Ooh no, something went wrong!