﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Andy Warren / Article Discussions / Article Discussions by Author  / Moving Replicated Databases / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 07:29:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>Andy That is just what I was looking for and worked for me at test system for Merge replication.But there is just 1 thing that I can not set it back.I am trying to disable to updating system tables :exec sp_configure 'allow updates',0goreconfigureGOIt seems updated but then ı try to rerun the code update sysdatabases set category=0 and it works again.so seems like once you set enable updating there is no turning back?what may I do to disable it back.isn't it a bit risky?</description><pubDate>Fri, 25 Nov 2011 08:25:22 GMT</pubDate><dc:creator>fcaglayan</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>Has this been tried with SQL 2005?</description><pubDate>Wed, 05 Aug 2009 09:20:27 GMT</pubDate><dc:creator>khone rathsachack</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>We just moved a replicated database from EMC to 3 Par yesterday.  All we had to do was stop replication, shut down the server, copy the database files to the drives with same names, and start the server again and then replication.I am assuming that the above approach is necessary if you would like to move a replicated database while the database server is still running - but if you can shut it down, then none of this is necessary.Is that correct?</description><pubDate>Mon, 06 Jul 2009 10:25:59 GMT</pubDate><dc:creator>sql_er</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>That's another limitation of Andy's method from which mine doesn't suffer - you can't make updates directly to the system tables on SQL Server 2005.John</description><pubDate>Sun, 28 Sep 2008 02:52:59 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>actually, i have the same problem, i have 2 databases that are on a drive and due to space problem, i need to move them into a new Drive, the 2 databases are replicated into 3 sites,i was following your steps but i had an error when executing "update sysdatabases set category=0 where name='myDBName'  : Ad hoc updates to system catalogs are not allowedhow can we solve the issue ???P.S. i'm using Microsoft Sql Server 2005 Standard Thank You,</description><pubDate>Sat, 27 Sep 2008 04:48:55 GMT</pubDate><dc:creator>ck900i</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>Interesting !I have to move data files for a merge replicated database next week, and in testing just came across this rather annoying problem in Sql2000.  I have a feeling in 2005 it would be a different story, as BOL for 2005 states you can do an ALTER DATABASE MODIFY FILE to change the file locations, but 2000 doesn't allow this.  (Am I correct?)I just tried Andy's trick and it seemed to work on my test publication.Scripting out the publication and recreating it might seem easy to some of you, but actually it's a pain in the &amp;$*%.   When you do that, it renders the subscriptions useless, so you then have to visit each and every subscriber computer, drop the subscription database and recreate it.  It's not difficult, and only takes 5 minutes, but then the snapshot has to be pulled down as well so that's another 5-10 minutes per machine.   All our subscriptions are laptop computers - trying to get access to them is hard enough.So, this little trick is a life saver.I'm not a DBA by any stretch but I don't see much harm in changing one little flag temporarily... unless someone can give me a really good reason not to do it this way,  it saves me a truckload of effort and time.   Likewise, backup/restore takes time.cheers!Dave :)</description><pubDate>Mon, 08 Oct 2007 18:35:06 GMT</pubDate><dc:creator>floyd99</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;Surely not if that involves dropping and recreating publications, or hacking system tables?  Backup and restore requires neither of those.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description><pubDate>Mon, 05 Feb 2007 08:33:00 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>Biggest reason is time - detach, move, attach is fairly quick.</description><pubDate>Mon, 05 Feb 2007 08:09:00 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;Why not just back up the database and restore it to the new location?  You don't have to touch the system tables then.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description><pubDate>Mon, 05 Feb 2007 02:12:00 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>&lt;SPAN id=Showtread1_ThreadRepeater__ctl1_lblFullMessage&gt;"That's a nice trick, wish I had known it a few months earlier! Andy http://www.sqlservercentral.com/columnists/awarren/ Andyhttp://www.endtoendtraining.com/"&lt;/SPAN&gt;</description><pubDate>Sat, 03 Feb 2007 04:45:00 GMT</pubDate><dc:creator>Roust_m</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>Its an older article, Steve sometimes will rerun one that he thinks is interesting on Friday.</description><pubDate>Fri, 02 Feb 2007 06:01:00 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>&lt;P&gt;"I ran into this a couple years ago..."&lt;/P&gt;&lt;P&gt;Nice solution, but it was discussed on this forum three years ago and you may remember this topic... &lt;img src='images/emotions/biggrin.gif' height='20' width='20' border='0' title='Big Grin' align='absmiddle'&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=65&amp;amp;messageid=14226#bm70809"&gt;http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=65&amp;amp;messageid=14226#bm70809&lt;/A&gt;&lt;/P&gt;</description><pubDate>Thu, 01 Feb 2007 20:06:00 GMT</pubDate><dc:creator>Roust_m</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>&lt;P&gt;Travis,&lt;/P&gt;&lt;P&gt;I understand your position, but its just a matter of mitigating the risk isnt it? Aside from that, what do you think could go wrong with this approach?&lt;/P&gt;</description><pubDate>Mon, 20 Mar 2006 16:53:00 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>good &lt;img src='images/emotions/laugh.gif' height='20' width='20' border='0' title='Laugh' align='absmiddle'&gt;</description><pubDate>Mon, 20 Mar 2006 01:12:00 GMT</pubDate><dc:creator>Atul Varshney</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>&lt;P&gt;&lt;HR&gt;&lt;/P&gt;&lt;P&gt;It is a good Solution for &lt;STRONG&gt;&lt;FONT color=#5555dd&gt;Moving Replicated Databases&lt;/FONT&gt;&lt;/STRONG&gt; &lt;img src='images/emotions/biggrin.gif' height='20' width='20' border='0' title='Big Grin' align='absmiddle'&gt;&lt;/P&gt;&lt;P&gt;&lt;HR&gt;Atul Varshney  &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Mon, 20 Mar 2006 01:06:00 GMT</pubDate><dc:creator>Atul Varshney</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>Well, I can be help full in cases you have very big publications and re applying the snapshot takes a very long time. I would really test it in my databases before trying it out in a production environment, but supose that something goes wrong, you can always recreate the publications again.</description><pubDate>Fri, 03 Feb 2006 20:07:00 GMT</pubDate><dc:creator>Rodrigo Acosta</dc:creator></item><item><title>RE: Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>&lt;P&gt;Clever, but I don't recommend doing this at all. You are really risking getting things really screwed up! You are better off just scripting out replication including the jobs, removing it totally (sp_removedbreplication and the jobs), detaching, attaching, and just running the replication script again..It is a little longer, I know but alot safer in the long run..The problem with clever little shortcuts like this is they can fill volumes with what they don't tell you can go wrong! Don't gamble with your databases with cute little workarounds like this. You will probably regret it sooner or later. Stick to what has been tried, true, and tested. DBA's that start experimenting with things like this usually find themselves looking for another job...trust me I have seen it far too often.&lt;/P&gt;&lt;P&gt;Travis Lee Alltop&lt;/P&gt;&lt;P&gt;Sr. SQL Server DBA&lt;/P&gt;</description><pubDate>Wed, 01 Feb 2006 08:08:00 GMT</pubDate><dc:creator>talltop</dc:creator></item><item><title>Moving Replicated Databases</title><link>http://www.sqlservercentral.com/Forums/Topic254555-29-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/awarren/movingreplicateddatabases.asp"&gt;http://www.sqlservercentral.com/columnists/awarren/movingreplicateddatabases.asp&lt;/A&gt;</description><pubDate>Mon, 30 Jan 2006 14:59:00 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item></channel></rss>