How to: Enable FILESTREAM
Before you can start to use FILESTREAM, you must enable FILESTREAM on the instance of the SQL Server Database Engine. This topic describes how to enable FILESTREAM by using SQL Server Configuration Manager.
To enable and change FILESTREAM settings
On the Start menu, point to All Programs, point to Microsoft SQL Server 2008, point to Configuration Tools, and then click SQL Server Configuration Manager.
In the list of services, right-click SQL Server Services, and then click Open.
In the SQL Server Configuration Manager snap-in, locate the instance of SQL Server on which you want to enable FILESTREAM.
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. Enter the name of the Windows share in the Windows Share Name box.
If remote clients must access the FILESTREAM data that is stored on this share, select Allow remote clients to have streaming access to FILESTREAM data.
Click Apply.
In SQL Server Management Studio, click New Query to display the Query Editor.
In Query Editor, enter the following Transact-SQL code:
EXEC sp_configure filestream_access_level, 2 RECONFIGURE
Click Execute.
Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
The configuration option 'filestream_access_level' does not exist, or it may be an advanced option.
I am a newbie to SQL Server and am sure that there must be a step to point to Stored Proc location that I am missing. Thanks.
Nevermind, I found that in connecting I had connected to SQLEXPRESS (where filestream is not supported) - instead of SQLServer. All the above steps worked perfectly when I connected to SQLServer. Thanks.
[Tai Yee - MSFT] Thank you for following up with the resolution to your problem!
[Jie Li - MSFT] Incorrect. SQL Server Express 2008 and above support FILESTREAM. You need to enable it.
- 6/21/2009
- PerryNewton
- 7/12/2010
- Thomas Lee
Yet, still get the following msg when trying to create a FILESTREAM database:
"Msg 5591, Level 16, State 1, Line 1
FILESTREAM feature is disabled."
How is this possible?
----------- code sample ---------------
CREATE DATABASE FSDemo
ON
PRIMARY ( NAME = Arch1,
FILENAME = 'c:\FSDemo\archdat1.mdf'),
FILEGROUP FileStreamGroup1 CONTAINS FILESTREAM( NAME = Arch3,
FILENAME = 'c:\FSDemo\filestream1')
LOG ON ( NAME = Archlog1,
FILENAME = 'c:\FSDemo\archlog1.ldf')
GO
- 3/19/2010
- jcmusic
- 7/12/2010
- Thomas Lee
Why does this option have to be set twice: Once in SQL Server Configuration Manager and a second time by setting server configuration options through T-SQL in SQL Server Management Studio?
- 5/11/2010
- BetterToday
See http://msdn.microsoft.com/en-us/library/cc645956.aspx for filestream_access_level
Basically:
•0 : Disables instance FILESTREAM support
•1 : Enables FILESTREAM TSQL support
•2 : Enables FILESTREAM TSQL and streaming
- 9/15/2008
- William Vaughn