Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving FileStream Location
Message
De
08/08/2011 13:38:35
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01520381
Message ID:
01520421
Vues:
31
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform