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 7: <strong>FILESTREAM</strong> Database AdministrationDatabase Publishing Wizard<strong>The</strong> current version <strong>of</strong> Database Publishing Wizard can be downloaded from: http://brurl.com/fs23.<strong>The</strong> Database Publishing Wizard allows us to publish a <strong>SQL</strong> <strong>Server</strong> 2008 database to a<strong>SQL</strong> <strong>Server</strong> 2008 or 2005 database. When publishing from <strong>SQL</strong> <strong>Server</strong> 2008 to 2005,<strong>FILESTREAM</strong> columns will be created as VARBINARY(MAX) columns. We cannot publisha <strong>SQL</strong> <strong>Server</strong> 2008 database with <strong>FILESTREAM</strong> columns for deployment to a <strong>SQL</strong> <strong>Server</strong>2000 instance.SummaryThis chapter walked through quite an array <strong>of</strong> database administration topics that arerelevant to people managing <strong>FILESTREAM</strong> databases. Here's a brief summary <strong>of</strong> whatwe covered.• How to detach and attach <strong>FILESTREAM</strong> databases and, in the process, move the<strong>FILESTREAM</strong> files to a new location.• <strong>The</strong> behavior <strong>of</strong> <strong>FILESTREAM</strong> data under the transaction isolation levels.• How the database recovery model <strong>of</strong> the database affects the way the garbage collectorsteps in and removes the garbage files. We also looked at the <strong>FILESTREAM</strong> tombstonetable, which keeps track <strong>of</strong> the garbage files; the garbage collector uses this table toidentify the files to be removed.• Why it is not recommended that you touch the <strong>FILESTREAM</strong> data files on the NTFSfolder directly, and why all access to the <strong>FILESTREAM</strong> data should be made through<strong>SQL</strong> <strong>Server</strong> only. Deleting files from the <strong>FILESTREAM</strong> data container or creating newfiles in the <strong>FILESTREAM</strong> data container can cause corruption in the database.310

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

Saved successfully!

Ooh no, something went wrong!