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 10: Integrating <strong>FILESTREAM</strong> with other <strong>SQL</strong> <strong>Server</strong> Features<strong>FILESTREAM</strong> and ReplicationReplication technologies provide a means to copy data from a primary database(publisher) to one or more secondary databases (subscribers). Even though replicationwasn't designed for all the functions DBAs use it for today, it is nevertheless widely usedas a solution for reporting, load balancing, synchronization, high availability, disasterrecovery, and so on. <strong>SQL</strong> <strong>Server</strong> supports replicating <strong>FILESTREAM</strong> data but, <strong>of</strong> course,<strong>FILESTREAM</strong> data is stored outside the database (in the file system) and is <strong>of</strong>ten used tostore very large data files, so it is interesting to examine how replication <strong>of</strong> <strong>FILESTREAM</strong>enableddatabases works.Replicating <strong>FILESTREAM</strong> columnsWhen replicating <strong>SQL</strong> <strong>Server</strong> 2008 <strong>FILESTREAM</strong>-enabled databases, <strong>FILESTREAM</strong>columns can be replicated either with or without the <strong>FILESTREAM</strong> attribute.If you replicate <strong>FILESTREAM</strong> columns with the <strong>FILESTREAM</strong> attribute, <strong>FILESTREAM</strong>data values on the publisher column will go to a <strong>FILESTREAM</strong> column on the subscriber.When you replicate a <strong>FILESTREAM</strong> database to a <strong>SQL</strong> <strong>Server</strong> 2008 or later instance,in most cases you would want to replicate the <strong>FILESTREAM</strong> attribute along with the<strong>FILESTREAM</strong> columns.If you replicate <strong>FILESTREAM</strong> columns without the <strong>FILESTREAM</strong> attribute, <strong>FILESTREAM</strong>data values on the publisher will be replicated as VARBINARY(MAX) columns on thesubscriber. In this way, it's possible to replicate a table with <strong>FILESTREAM</strong> columns to a<strong>SQL</strong> <strong>Server</strong> 2005 subscriber, which doesn't support <strong>FILESTREAM</strong>. However, it is notpossible to replicate <strong>FILESTREAM</strong> columns to <strong>SQL</strong> <strong>Server</strong> 2000 subscribers. Table 10-1summarizes the <strong>FILESTREAM</strong> replication support with previous versions <strong>of</strong> <strong>SQL</strong> <strong>Server</strong>.352

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

Saved successfully!

Ooh no, something went wrong!