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> Features/*OperationItemNumber ItemDescription ImageSize------------------- ---------- --------------- ---------Update (Old Values) MS1001 Micros<strong>of</strong>t Mouse 499988Update (New Values) MS1001 Micros<strong>of</strong>t Mouse 4Delete MS1001 Micros<strong>of</strong>t Mouse 4*/Listing 10-22: Querying the CDC logs for data modification history.Note that the maximum replication text size configuration setting also affects CDC. Weexamined this setting in detail when we discussed replication, earlier in this chapter.When CDC is enabled on a table, if you try to insert or update a data value larger than thesize specified, the INSERT or UPDATE operation will fail.To summarize, it is possible to enable CDC on <strong>FILESTREAM</strong> columns, but CDC willcapture the column as VARBINARY(MAX), not as <strong>FILESTREAM</strong>. Enabling CDC on<strong>FILESTREAM</strong> columns is not recommended or supported. Before moving on, let's disableCDC on the NorthPole database. Listing 10-23 shows how. It's not necessary to disableCDC on individual tables first.USE NorthPoleGO-- Disable CDC on the NorthPole databaseEXEC sys.sp_cdc_disable_dbListing 10-23: Disabling CDC on a database.381

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

Saved successfully!

Ooh no, something went wrong!