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 10: Integrating <strong>FILESTREAM</strong> with other <strong>SQL</strong> <strong>Server</strong> FeaturesTo configure log shipping <strong>of</strong> <strong>FILESTREAM</strong>-enabled databases, the secondary serversmust be running on <strong>SQL</strong> <strong>Server</strong> 2008 and have <strong>FILESTREAM</strong> enabled. Beyond this, onepoint you might need to pay attention to is the connectivity between the primary andsecondary servers. Transaction logs shipped using log shipping will include <strong>FILESTREAM</strong>data as well, which will make the shipped logs very big if your database deals with a lot<strong>of</strong> <strong>FILESTREAM</strong> operations involving large BLOB values. It is also important to understandthat, when a <strong>FILESTREAM</strong> value is updated, <strong>SQL</strong> <strong>Server</strong> creates a new file with themodified value. This new copy <strong>of</strong> the file will be included in the transaction log backupwhich has an impact on the overall size <strong>of</strong> the transaction log backups.<strong>FILESTREAM</strong> and Full-Text IndexingFull-text indexing works with <strong>FILESTREAM</strong> columns in just the same way as withVARBINARY(MAX) columns, with the only difference being that the 2 GB limit is notapplicable when indexing <strong>FILESTREAM</strong> columns.Just like VARBINARY(MAX) columns that do not have the <strong>FILESTREAM</strong> attribute,full-text indexing requires a column that stores the extension <strong>of</strong> the documents stored inthe <strong>FILESTREAM</strong> column. <strong>SQL</strong> <strong>Server</strong> looks at this column to determine the documenttype, loads the appropriate IFilter, and indexes it.More about full-text indexingA detailed explanation <strong>of</strong> full-text indexing is beyond the scope <strong>of</strong> this book. For more information, Iwould suggest you take a look at Books Online at: http://brurl.com/fs13.For a quick look at how <strong>SQL</strong> <strong>Server</strong> indexes <strong>FILESTREAM</strong> columns using full-textindexing, let's create a table with a few <strong>FILESTREAM</strong> data values, as shown inListing 10-9.371

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

Saved successfully!

Ooh no, something went wrong!