When restoring the adventureworks sample database, the filestream feature is disabled error message is displayed.
Filestream is a new feature added by SQL Server 2008. It is disabled by default. If this feature is enabled for the DB Backup file, enable this feature is also required for restoration on another server.
To open the SQL Server Configuration Manager at the beginning, follow these steps:
1> enable SQL Server Configuration Manager
2> Find SQL Server services
3> switch to filestream tabe.
4> select [enable filestream for Transact-SQL access] and [enable filestream for file I/O streaming access]
4> Click OK to restart SQL Server services
As follows:
It does not work. The error persists during restoration.
I checked books-online. The original configuration was used to control access, and it was just a poor response.
The correct setting method is to call the sp_configure stored procedure to enable filestream.
CodeAs follows:
1 2 3 4 5 |
UseMaster GoExecSp_configure filestream_access_level, 2 Reconfigure |
Restore the database, it works!