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.

USE [master]<br />

GO<br />

Chapter 7: Differential <strong>Backup</strong> <strong>and</strong> <strong>Restore</strong><br />

BACKUP DATABASE [DatabaseForDiff<strong>Backup</strong>s]<br />

TO DISK = N'C:\<strong>SQL</strong><strong>Backup</strong>s\Chapter7\DatabaseForDiff<strong>Backup</strong>s_Diff_Native_2.bak'<br />

WITH DIFFERENTIAL,<br />

NAME = N'DatabaseForDiff<strong>Backup</strong>s-Differential Database <strong>Backup</strong>',<br />

STATS = 10<br />

GO<br />

Listing 7-5: Native T-<strong>SQL</strong> differential backup for DatabaseForDiff<strong>Backup</strong>s.<br />

Having run the comm<strong>and</strong>, you should see results similar to those shown in Figure 7-5.<br />

Figure 7-5: Native differential T-<strong>SQL</strong> backup script message output.<br />

Figure 7-6 summarizes the storage requirements <strong>and</strong> execution time metrics for our<br />

second differential backup, compared to the first differential backup.<br />

222

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

Saved successfully!

Ooh no, something went wrong!