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 11: FileTableUpdate permission is denied, the metadata fields in the FileTable do not get updated. So,the last_write_time and cached_file_size values <strong>of</strong> that row in the FileTablewill not reflect accurate values. At the time <strong>of</strong> going to press, Micros<strong>of</strong>t confirmed thatthis is a bug and that they intend to issue an update to address it.It is possible that these shortcomings in the security features <strong>of</strong> FileTable will be adeal breaker for some environments, and you will have to review these and discuss thepotential implications with the stakeholders.Setting Up the <strong>Server</strong> for FileTableFileTable is based on <strong>FILESTREAM</strong>, so the <strong>SQL</strong> <strong>Server</strong> machine and instance need tobe configured to support <strong>FILESTREAM</strong>. Specifically, the use <strong>of</strong> FileTables requires the<strong>FILESTREAM</strong> access level to be set to allow remote streaming access. Complete details <strong>of</strong>how to set up and verify <strong>FILESTREAM</strong> configuration are found in Appendix A.It is also important to note that, just like <strong>FILESTREAM</strong>, to access FileTable data using theWindows API, Windows authentication must be enabled for the <strong>SQL</strong> <strong>Server</strong> instance.Creating a Database with Support for FileTableIn order to create a FileTable, the hosting database must be configured to support<strong>FILESTREAM</strong> and FileTable. A complete discussion about creating databases with<strong>FILESTREAM</strong> support is provided in Chapter 2.In addition to support for <strong>FILESTREAM</strong>, the database must also have the <strong>FILESTREAM</strong>Directory Name option set to a valid folder name. It is also most likely that you willenable non-transactional access to the FileTables in your database. <strong>The</strong> T-<strong>SQL</strong> script inListing 11-8 creates a database that has support for FileTable enabled. Review the sectionon FileTable Concepts, above, to learn how to configure the FileTable settings using SSMS.402

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

Saved successfully!

Ooh no, something went wrong!