dbTalk Databases Forums  

Move database file with replication set

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss Move database file with replication set in the microsoft.public.sqlserver.replication forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Poch Reyes
 
Posts: n/a

Default Move database file with replication set - 02-19-2004 , 07:06 AM






Hi Guy,

Is there a way to move a database file (say c:\mydb.mdf to d:\mydb.mdf) to a
different drive without making it offline with replication set on the
database?

Thanks,

Poch



Reply With Quote
  #2  
Old   
Shirley Kelly [MS]
 
Posts: n/a

Default RE: Move database file with replication set - 02-20-2004 , 12:03 AM






Hi Poch,

No, this cannot be done. The master database contains the location of the
other database files. If you take a database offline and move the files to
another location, you won't be able to bring it back online again because
the files cannot be found.

You cannot detach a database that's being replicated.

You should be able to backup and restore the database at the new location,
using the restore options KEEP_REPLICATION and MOVE. This would have to be
done in Query Analyzer because the Enterprise Manager GUI doesn't have the
KEEP_REPLICATION option. Please refer to Books OnLine for more
information about moving database involved in replication.


Regards,
Shirley
SQL Server Support

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.