Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check SQL Server 2008 Filestream status

I'm using the SQL Server 2008 filestream feature in one of my projects, is there a way to check the filestream status (if it's enabled or not) using a query?

like image 621
reggieboyYEAH Avatar asked Jun 25 '10 05:06

reggieboyYEAH


People also ask

How do I know if Filestream is enabled?

Right-click the instance, and then click Properties. In the SQL Server Properties dialog box, click the FILESTREAM tab. Select the Enable FILESTREAM for Transact-SQL access check box. If you want to read and write FILESTREAM data from Windows, click Enable FILESTREAM for file I/O streaming access.

What is SQL Filestream?

FILESTREAM enables SQL Server-based applications to store unstructured data, such as documents and images, on the file system.

What is the difference between Filestream and FileTable?

FileStream and FileTable are features of SQL Server for storing unstructured data in SQL Server alongside other data. The FileStream feature stores unstructured data in the file system and keeps a pointer of the data in the database, whereas FileTable extends this feature even further allowing non-transactional access.


1 Answers

You can certainly check that using the sp_configure system stored procedure:

exec sp_configure 'filestream access level'

or

SELECT * FROM sys.configurations
WHERE name = 'filestream access level'

Should give you something like:

name                 minimum    maximum config_value    run_value
filestream access level 0      2         0              0
  • 0 = FILESTREAM is disabled.
  • 1 = only T-SQL access to FILESTREAM data is allowed.
  • 2 = T-SQL access and local streaming access is allowed.
  • 3 = T-SQL access and local and remote streaming access is allowed.

Reference: https://svenaelterman.wordpress.com/2012/01/02/the-truth-behind-filestreameffectivelevel-and-filestreamconfiguredlevel-serverproperty-values/

like image 166
marc_s Avatar answered Oct 22 '22 04:10

marc_s