<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Detaching Databases in MOSS 2007 Environments.</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx</link><description>While performing database maintenance there are few things to consider and execute to keep your environment healthy. First being preparetomove, if you are detaching databases from a production environment this is a must. The following line is extremely</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>SharePoint 2007 : Réussir sa mise à jour vers le SP1</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#2937317</link><pubDate>Thu, 28 Feb 2008 00:22:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2937317</guid><dc:creator>The Grib's Lair [Blog technique de Sébastien PICAMELOT]</dc:creator><description>&lt;p&gt;J'ai encore tr&amp;#232;s r&amp;#233;cemment pu voir une question sur le forum MSDN concernant une plateforme SharePoint&lt;/p&gt;
</description></item><item><title>SharePoint 2007 : Réussir sa mise à jour vers le SP1</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#3041488</link><pubDate>Mon, 21 Apr 2008 13:36:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3041488</guid><dc:creator>The Grib's Lair [Blog technique de Sébastien PICAMELOT]</dc:creator><description>&lt;p&gt;J'ai encore tr&amp;#232;s r&amp;#233;cemment pu voir une question sur le forum MSDN concernant une plateforme SharePoint&lt;/p&gt;
</description></item><item><title>re: Detaching Databases in MOSS 2007 Environments.</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#3044423</link><pubDate>Thu, 24 Apr 2008 21:45:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3044423</guid><dc:creator>jpw</dc:creator><description>&lt;p&gt;Hi Cory,&lt;/p&gt;
&lt;p&gt;Can you please clarify for me if you must use preparetomove when you remove the content databsae using Central Administration?&lt;/p&gt;
&lt;p&gt;Does CA perform this step automatically, or is it required to run stsadm first?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jason&lt;/p&gt;
</description></item><item><title>Prepare Your Content Database </title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#3048829</link><pubDate>Fri, 02 May 2008 21:53:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3048829</guid><dc:creator>Vu's Technical Notepad</dc:creator><description>&lt;p&gt;Before moving a content database from one farm to another, remember to prepare the database with the&lt;/p&gt;
</description></item><item><title>re: Detaching Databases in MOSS 2007 Environments.</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#3096219</link><pubDate>Thu, 31 Jul 2008 21:59:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3096219</guid><dc:creator>etsmtl</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I get exactly the same message (each hour). But when I run &lt;/p&gt;
&lt;p&gt;stsadm -o sync -listolddatabases 0&lt;/p&gt;
&lt;p&gt;I get an empty list.&lt;/p&gt;
&lt;p&gt;And if I try to run &lt;/p&gt;
&lt;p&gt;stsadm -o sync -DeleteOldDatabases 0&lt;/p&gt;
&lt;p&gt;I get the error 7888&lt;/p&gt;
&lt;p&gt;&amp;quot;A runtime exception was detected. Details follow. &lt;/p&gt;
&lt;p&gt;Message: Invalid object name 'profile_stats'&amp;quot;&lt;/p&gt;
&lt;p&gt;SP1 of WSS 3.0 and Office Server are installed.&lt;/p&gt;
&lt;p&gt;Any idea ?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Marcelo.&lt;/p&gt;
</description></item><item><title>Whole farm is down because timer jobs are not running</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#3134700</link><pubDate>Thu, 09 Oct 2008 22:50:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3134700</guid><dc:creator>The SharePoint Farmer's Almanac</dc:creator><description>&lt;p&gt;One of my clients this week managed to take his entire farm offline this week by upsetting the timer&lt;/p&gt;
</description></item><item><title>How to properly move (Detach/Attach)  a content database.</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#3143400</link><pubDate>Tue, 28 Oct 2008 22:03:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3143400</guid><dc:creator>Microsoft Office Sharepoint Server 2007</dc:creator><description>&lt;p&gt;The idea to write this entry came as a result of many failed Profile sync operations I've seen lately,&lt;/p&gt;
</description></item><item><title>re: Detaching Databases in MOSS 2007 Environments.</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#3143401</link><pubDate>Tue, 28 Oct 2008 22:06:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3143401</guid><dc:creator>Victor Butuza</dc:creator><description>&lt;p&gt;Pingback from &lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/victorbutuza/archive/2008/10/28/how-to-properly-move-detach-attach-a-content-database.aspx"&gt;http://blogs.technet.com/victorbutuza/archive/2008/10/28/how-to-properly-move-detach-attach-a-content-database.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Detaching Databases in MOSS 2007 Environments.</title><link>http://blogs.technet.com/corybu/archive/2007/06/01/detaching-databases-in-moss-2007-environments.aspx#3287241</link><pubDate>Fri, 16 Oct 2009 08:42:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3287241</guid><dc:creator>rmzeitouny</dc:creator><description>&lt;p&gt;Hi Corry,&lt;/p&gt;
&lt;p&gt;i think that a little detail is missing from your post and that is in the command line:&lt;/p&gt;
&lt;p&gt;stsadm -o preparetomove -contentdb sqlserver:dbname -oldcontentdb &amp;lt;GUID&amp;gt;&lt;/p&gt;
&lt;p&gt;i think that the dbname should not be any database in your child farm but it should be the name of the new contentDB that used to have the oldcontentdb GUID in question, now i struggled a bit to find out how to get the new ContentDB for every old GUID in the list. and here is my solution:&lt;/p&gt;
&lt;p&gt;1. Go to SQL server and select the records from the SSP database table &amp;quot;SiteSynch&amp;quot;. It will look like&lt;/p&gt;
&lt;p&gt;ContentDB id Site ID LastSync &lt;/p&gt;
&lt;p&gt;01b05082-882e-4b6b-926b-9b18dbf6dee4 8d3b94be-812d-4dfa-b375-462754b7b9c2 15/09/2009 8:00:14 PM &lt;/p&gt;
&lt;p&gt;2. Now you know the site ID for the OldDB GUIDs and you need to know the current ContentDB name. &amp;nbsp;Execute the following code to get a list of site collections URLS and IDs with their content DBs (the WebAppUrl is the url for your web application)&lt;/p&gt;
&lt;p&gt;public string[] EnumSiteColl(string WebAppUrl){&lt;/p&gt;
&lt;p&gt;using (SPSite siteCollection = new SPSite(WebAppUrl)) &lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; SPWebApplication webApp = siteCollection.WebApplication;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; string[] s = new string[webApp.Sites.Count];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; int i = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; foreach (SPSite site in webApp.Sites)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; s[i] = site.Url + &amp;quot;: &amp;quot; + site.ID + &amp;quot;: &amp;quot; + site.ContentDatabase.Name + &amp;quot;: &amp;quot; + site.ContentDatabase.Id; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; i++;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; }return s;&lt;/p&gt;
&lt;p&gt; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description></item></channel></rss>