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> DatabasesUSE NorthPolePartialGOSELECT *FROM Items/*Msg 670, Level 16, State 1, Line 2Large object (LOB) data for table "dbo.Items" resides on an<strong>of</strong>fline filegroup ("NorthPoleFS") that cannot be accessed.*/Listing 8-13:A SELECT * query on a <strong>FILESTREAM</strong> table will fail if the <strong>FILESTREAM</strong>filegroup is not available.If only the relational data is selected, the query will be successful. If a partial restoresequence excludes any <strong>FILESTREAM</strong> filegroup, point-in-time restore is not supported.For more information see Piecemeal Restores (<strong>SQL</strong> <strong>Server</strong>) at http://brurl.com/fs24.Data and Backup Compression for <strong>FILESTREAM</strong>DatabasesOne <strong>of</strong> the primary concerns with regard to having a database storing large amounts <strong>of</strong>BLOB data is the storage challenge, since <strong>FILESTREAM</strong>-enabled databases are expectedto store huge amounts <strong>of</strong> data.<strong>SQL</strong> <strong>Server</strong> 2008 introduced a data compression feature with compression <strong>of</strong> relationaldata at the page or row level. However, it does not compress the <strong>FILESTREAM</strong> dataassociated with the relational data.It is possible to mark a <strong>FILESTREAM</strong> data container as "compressed" at the Windowslevel, which ultimately compresses the <strong>FILESTREAM</strong> data stored in the folder. However,this option is beneficial only if the data in the <strong>FILESTREAM</strong> data container is furthercompressible. If the data is already compressed (such as a zip file, jpeg, etc.) enabling325

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

Saved successfully!

Ooh no, something went wrong!