CREATE DATABASE [MyDB] ON
( FILENAME = N'D:\MSSQL14.InstanceName\MSSQL\DATA\MyDB.mdf' ),
( FILENAME = N'L:\MSSQL14.InstanceName\MSSQL\Log\MyDB_log.ldf' ),
FILEGROUP [MyFileStream] CONTAINS FILESTREAM DEFAULT
( NAME = N'MyFileStream', FILENAME = N'D:\MSSQL14.InstanceName\MSSQL\DATA\FileStreamFolder' )
FOR ATTACH
GO