mssql-docker icon indicating copy to clipboard operation
mssql-docker copied to clipboard

Restore database backup onto mounted directory with FILESTREAM

Open richardgavel opened this issue 8 years ago • 8 comments

I started up a container based on the microsoft/mssql-server-windows-developer image, with C:\Temp within the container mounted to C:\Temp on the host. I then tried to restore the WorldWideImporters sample database backups, changing the data file location to be C:\Temp. However, it choked on the FILESTEAM portion of the restore.

Error: Unable to open the physical file "C:\Temp\WideWorldImporters_InMemory_Data_1" Operating system error 0: "(null)"

richardgavel avatar Jul 19 '17 03:07 richardgavel

Did you get anywhere with this? I'm getting :

Restore of database 'MyDatabase' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)

ADDITIONAL INFORMATION: System.Data.SqlClient.SqlError: FILESTREAM feature is disabled. (Microsoft.SqlServer.SmoExtended)

However I've enabled Filestream via Advanced Server properties in SSMS.

richardwhatever avatar Sep 12 '17 14:09 richardwhatever

I'm getting the same issue. I'm trying to restore an existing database (2008 R2) into my docker instance and I'm getting this error : System.Data.SqlClient.SqlError: FILESTREAM feature is disabled. (Microsoft.SqlServer.SmoExtended)

Enabled Filestream via Server Properties in SSMS, restarted the docker, restarted the service, all without success.

grenierdev avatar Dec 23 '19 14:12 grenierdev

Does anybody have some insight around how to fix this? I need to restore a database that uses FILESTREAM and also getting errors on restore

Msg 5591, Level 16, State 4, Line 2 FILESTREAM feature is disabled. Msg 3013, Level 16, State 1, Line 2 RESTORE DATABASE is terminating abnormally. Enabling filestream without SQL server configuration manager is a huge pain.

joachimpr avatar Jan 05 '21 21:01 joachimpr

Hi there, Filestream is not supported in SQL Server on Linux and Docker containers. Check out this link for more details - https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-editions-and-components-2019?view=sql-server-ver15#Unsupported

nocentino avatar Jan 05 '21 21:01 nocentino

Hi there, Filestream is not supported in SQL Server on Linux and Docker containers. Check out this link for more details - https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-editions-and-components-2019?view=sql-server-ver15#Unsupported

Is this the linux version? Apologies. Im running the windows container. I got confused as the label on this issue states windows. I'm attempting to build a docker image with filestream installed along with sql server. This is how we learn I guess 😁

joachimpr avatar Jan 05 '21 22:01 joachimpr

Ah my bad then, I assumed Linux container :) I don't have any experience with the SQL Windows containers.

nocentino avatar Jan 05 '21 22:01 nocentino

I'm also running the Windows container and am struggling to het Filestream enabled:

ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: The path '/var/opt/mssql/data/Filestream01' cannot be used for FILESTREAM files. For information about supported paths, see SQL Server Books Online. (Microsoft.SqlServer.SmoExtended)

For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=16.100.46521.71+(SMO-master-A)&LinkId=20476

BertDBBIPT avatar May 13 '22 15:05 BertDBBIPT

Not sure if this due to the same problem, but I had the same error and wasn't using a container. I eventually realized I was attempting to restore to a location on a virtual drive that was created from a folder by the SUBST command in Windows. Using the full non-virtual path to the folder I was restoring to allowed it to restore properly

idsnmarshall avatar Sep 19 '23 13:09 idsnmarshall