17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 8: Backup and Restore for <strong>FILESTREAM</strong> Databases• Transaction log backup – Copies into a backup file all the log records inserted into thetransaction log file since the last transaction log backup.No <strong>FILESTREAM</strong>-specific commands or keywords are required to create any <strong>of</strong> thesebackup types.Full backupsA full database backup is the cornerstone <strong>of</strong> most <strong>SQL</strong> <strong>Server</strong> Backup and recoveryschemes, and a full backup <strong>of</strong> a <strong>FILESTREAM</strong> database always includes the <strong>FILESTREAM</strong>data, as well as all the relational data.Listing 8-2 takes a full backup <strong>of</strong> the NorthPole database and stores the backup file onthe same drive as the database files. Of course, this is purely for convenience in this demo;in reality, you would always back up to a separate disk drive. Feel free to alter the pathas required.-- Take a full backupUSE masterGOBACKUP DATABASE NorthPoleTO DISK = 'C:\<strong>Art</strong>OfFS\Demos\Chapter8\bak\NorthPole.bak'GOListing 8-2:T-<strong>SQL</strong> code to take a full backup <strong>of</strong> a <strong>FILESTREAM</strong>-enabled database.Differential backupsA differential backup <strong>of</strong> a <strong>SQL</strong> <strong>Server</strong> database contains all changes since the previousfull backup. Differential backups are especially useful when the database is large, and<strong>FILESTREAM</strong> databases are obviously expected to be large, since a full database backup315

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

Saved successfully!

Ooh no, something went wrong!