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> FeaturesReplicating databases with multiple <strong>FILESTREAM</strong>filegroupsMost real-world <strong>FILESTREAM</strong> databases will have more than one <strong>FILESTREAM</strong>filegroup, and it is important to understand how replication works with multiple<strong>FILESTREAM</strong> filegroups.By default, when you replicate a <strong>FILESTREAM</strong> database, all <strong>FILESTREAM</strong> data will goto the default <strong>FILESTREAM</strong> filegroup. However, we can configure the publication toreplicate <strong>FILESTREAM</strong> data to its own filegroup in the subscriber by setting another flagin the schema_option configuration value.In the previous section, we saw how to set or clear flags in the schema_optionconfiguration value. In a similar way, we can modify an article to replicate<strong>FILESTREAM</strong> data to the same filegroups in the subscriber by turning on thebit represented by 0x800000000.Note that the replication process does not create <strong>FILESTREAM</strong> filegroups on thesubscriber database. If you use this option, you must create the required <strong>FILESTREAM</strong>filegroups on the target database before applying the initial snapshot.<strong>The</strong> option to set the <strong>FILESTREAM</strong> filegroup is available only through T-<strong>SQL</strong>. <strong>The</strong> SSMSproperty page does not have this option.367

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

Saved successfully!

Ooh no, something went wrong!