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 3: Full Database <strong>Backup</strong>s<br />

Figure 3-9: Comparing native <strong>SQL</strong> <strong>Server</strong> backup file sizes.<br />

We will compare these metrics against the file sizes <strong>and</strong> speeds we get from backing up<br />

the same files using Red Gate's <strong>SQL</strong> <strong>Backup</strong> in Chapter 8.<br />

Native <strong>Backup</strong> Compression<br />

In <strong>SQL</strong> <strong>Server</strong> 2008 <strong>and</strong> earlier versions, backup compression was a feature only available<br />

in the Enterprise Edition (or Developer Edition) of <strong>SQL</strong> <strong>Server</strong>. However, starting with<br />

<strong>SQL</strong> <strong>Server</strong> 2008 R2, backup compression has been made available in all editions, so let's<br />

take a quick look at what savings it can offer over non-compressed backups, in terms of<br />

backup file size <strong>and</strong> the speed of the backup operation. Generally speaking, third-party<br />

backup tools still offer a better compression ratio, better speed <strong>and</strong> more options (such as<br />

compressed <strong>and</strong> encrypted backups) than native backup compression. However, we'll put<br />

that to the test in Chapter 8.<br />

All we're going to do is perform a compressed backup of the DatabaseForFull-<br />

<strong>Backup</strong>s, using the script shown in Listing 3-10.<br />

USE [master]<br />

GO<br />

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

TO DISK = N'C:\<strong>SQL</strong><strong>Backup</strong>s\Chapter3\<strong>SQL</strong>NativeCompressionTest.bak'<br />

WITH COMPRESSION, STATS = 10<br />

GO<br />

Listing 3-10: <strong>SQL</strong> native compression backup test.<br />

111

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

Saved successfully!

Ooh no, something went wrong!