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

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

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

Chapter 8: Backup and Restore for <strong>FILESTREAM</strong> DatabasesRestoring from a full backup<strong>The</strong> simplest RESTORE operation involves just a single full backup file. This type <strong>of</strong>restore is relatively common when, for example, refreshing a development environmentwith the latest version <strong>of</strong> a production database.Currently, following our "accidental" deletion, the Items table is empty. Listing 8-5restores our full database backup over the top <strong>of</strong> the existing NorthPole database andrecovers the database.USE [master]GORESTORE DATABASE NorthPole FROMDISK = 'C:\<strong>Art</strong>OfFS\Demos\Chapter8\bak\NorthPole.bak'WITH REPLACE, RECOVERYGOListing 8-6:Restoring a full database backup over the existing database.We have restored our NorthPole database, but so far only recovered one <strong>of</strong> the missingrows in our Items table. Fortunately, with the other backup files we've captured, we canrepeat the restore operation and this time roll the database forward to recover the otherthree missing rows.Point-in-time restoreOur current NorthPole database contains an Items table with just a single row <strong>of</strong> data,and our goal here is to restore the database to the point where it contained all four rows<strong>of</strong> data.319

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

Saved successfully!

Ooh no, something went wrong!