Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving FileStream Location
Message
From
08/08/2011 13:38:35
 
General information
Forum:
Microsoft SQL Server
Category:
Database management
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01520381
Message ID:
01520421
Views:
32
Thanks Sergey,

I followed the instructions to detach, then to run a command like this to reattach:
USE [master]
GO
CREATE DATABASE [FileStreamDB] ON 
( FILENAME = N'c:\Data\FileStreamDB.mdf' ),
( FILENAME = N'c:\Log\FileStreamDB_log.ldf' ),
FILEGROUP [FileStreamGroup] CONTAINS FILESTREAM DEFAULT 
( NAME = N'FileStreamDB_FSData', FILENAME = N'e:\Data\Filestream' )
FOR ATTACH
GO
and that seems to have worked.

>Check http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/ff8c14ae-a9d0-4668-a95b-ee19bbb48b26/
>
>>
>>I've got a database on my PC with a filestream set to a certain path on my PC. I've backed this up and restored the database on a client's server. I now need to change the location of where the files get stored on the server as the path I configured it with on my PC is incorrect on the server. My googling has not given me anything that I can understand. Can anyone here help me out, please?
>>
>>Thanks
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform