Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Detaching a replicated database

$
0
0

SQL Server 2005 - We want to detach a replicated database in order to move the files to different disks.  The database is a publisher.  According to BOL, "Before you can detach the database, you must disable publishing by running sp_replicationdboption".

Planned steps -
1) EXEC sp_replicationdboption @dbname= 'db_name'
        , @optname= 'publish'
        , @value= 'false'

2) Detach the database

3) Copy the database files to new locations

4) Attach the database

5) EXEC sp_replicationdboption @dbname= 'db_name'
        , @optname= 'publish'
        , @value= 'true'



Will these steps suffice, or am I missing something?

Is there anything that needs to be done to the subscriber?


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>