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.

Appendix A: Configuring <strong>FILESTREAM</strong> on a <strong>SQL</strong> <strong>Server</strong> Instance<strong>The</strong> access level should show either Transact-<strong>SQL</strong> access enabled or Full access enabled.Note that, in the Running values view, there is no actual drop-down list.<strong>The</strong> Configured values view will show the Filestream Access Level as configured atthe <strong>SQL</strong> <strong>Server</strong> instance level. It is possible for the configured value to show Full accessenabled, while the <strong>FILESTREAM</strong> feature can actually be disabled at the Windows level.Using T-<strong>SQL</strong> to check that <strong>FILESTREAM</strong> is enabled<strong>The</strong> T-<strong>SQL</strong> code in Listing A-3 retrieves the <strong>FILESTREAM</strong> configuration <strong>of</strong> the current<strong>SQL</strong> <strong>Server</strong> instance.SELECT SERVERPROPERTY('FilestreamEffectiveLevel') AS FilestreamEffectiveLevel/*FilestreamEffectiveLevel---------------------------1*/Listing A-3:Query to retrieve the <strong>FILESTREAM</strong> configuration level <strong>of</strong> a <strong>SQL</strong> <strong>Server</strong> instance.<strong>The</strong> possible return values <strong>of</strong> the above query are:• 0 - <strong>FILESTREAM</strong> is disabled• 1 - <strong>FILESTREAM</strong> is enabled for T-<strong>SQL</strong> access• 2 - <strong>FILESTREAM</strong> is enabled for T-<strong>SQL</strong> and local streaming access only• 3 - <strong>FILESTREAM</strong> is enabled for T-<strong>SQL</strong> and local and remote streaming access.At the time <strong>of</strong> writing, neither the MSDN documentation nor Books Online mentionconfiguration value 3. Configuration values 2 and 3 are used to differentiate betweenlocal and remote streaming access.478

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

Saved successfully!

Ooh no, something went wrong!