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 9: Investigating <strong>FILESTREAM</strong> Databases/*FilestreamConfiguredLevel FilestreamEffectiveLevel------------------------- ------------------------3 3*/Listing 9-4:Identifying the <strong>FILESTREAM</strong> access level at the Windows level.Both FilestreamConfiguredLevel and FilestreamEffectiveLevel return anumeric value that indicates the current configuration value, as follows:• 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 Win32 streaming access (local only)• 3 – <strong>FILESTREAM</strong> is enabled for T-<strong>SQL</strong> and Win32 streaming access (local and remote)(Undocumented).<strong>The</strong> difference between FilestreamConfiguredLevel and FilestreamEffective-Level is found in how <strong>FILESTREAM</strong> requires configuration changes at the Windowslevel, through Configuration Manager, and at the <strong>SQL</strong> <strong>Server</strong> instance level throughSSMS or the sp_configure stored procedure (see Appendix A for more details).Note that at time <strong>of</strong> writing (March 2012) the description <strong>of</strong> these server properties given inBooks Online was not accurate.<strong>The</strong> FilestreamConfiguredLevel property returns the value as configured inConfiguration Manager. FilestreamEffectiveLevel returns the actual ("effective")level <strong>of</strong> <strong>FILESTREAM</strong> access that is enabled. FilestreamEffectiveLevel can be lessthan or equal to FilestreamConfiguredLevel. If the configuration at the instancelevel is different from the configuration at the Windows level, the lower access level willprevail. Let's examine this in the matrix below.337

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

Saved successfully!

Ooh no, something went wrong!