<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Move Sharepoint 2007 Content Database</title>
	<atom:link href="http://www.skatercoder.com/2007/04/10/move-sharepoint-2007-content-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skatercoder.com/2007/04/10/move-sharepoint-2007-content-database/</link>
	<description>angela chng - Ruby on Rails / PHP web developer &#38; skater girl in Singapore</description>
	<lastBuildDate>Sat, 08 Jan 2011 06:53:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Steven Oberholzer</title>
		<link>http://www.skatercoder.com/2007/04/10/move-sharepoint-2007-content-database/comment-page-1/#comment-377</link>
		<dc:creator>Steven Oberholzer</dc:creator>
		<pubDate>Wed, 19 Nov 2008 13:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://audioreload.com/roadburn/?p=3#comment-377</guid>
		<description>We sat with issues in our Production Environment and had to get a Development environment up that was identical to the Production environment. Identical because there were potentially issues with the database as people had gone into the database and made direct database changes, something which you should never do...

Quick way to do it:
1. Take a backup of your production content db.
2. Take a backup of your dev content db.
2.1. Make sure that you get the GUID of the SiteID of the Sites table in the original content database. This is at this moment referenced by the Config database in the SiteMap (and potentially the Sites) table.
3. Restore the production db backup over the dev content db.
4. In SQL Enterprise Manager:
4.1. Get the GUID of the site record in the Sites table in the Content DB - the new content db that you&#039;ve just restored. This will definitely differ from the GUID in the Config DB.
4.2. Update the Config DB&#039;s SiteMap (and maybe Sites) table where the ID is equal to the previous ID, to the new Site ID.
5. Perform an IISRESET.

WARNING:
1. It is not wise to play around in the SQL Databases.
2. Be careful that you don&#039;t have references in lets say document libraries, to the Production document libraries, as you might inadvertently update or delete these documents.</description>
		<content:encoded><![CDATA[<p>We sat with issues in our Production Environment and had to get a Development environment up that was identical to the Production environment. Identical because there were potentially issues with the database as people had gone into the database and made direct database changes, something which you should never do&#8230;</p>
<p>Quick way to do it:<br />
1. Take a backup of your production content db.<br />
2. Take a backup of your dev content db.<br />
2.1. Make sure that you get the GUID of the SiteID of the Sites table in the original content database. This is at this moment referenced by the Config database in the SiteMap (and potentially the Sites) table.<br />
3. Restore the production db backup over the dev content db.<br />
4. In SQL Enterprise Manager:<br />
4.1. Get the GUID of the site record in the Sites table in the Content DB &#8211; the new content db that you&#8217;ve just restored. This will definitely differ from the GUID in the Config DB.<br />
4.2. Update the Config DB&#8217;s SiteMap (and maybe Sites) table where the ID is equal to the previous ID, to the new Site ID.<br />
5. Perform an IISRESET.</p>
<p>WARNING:<br />
1. It is not wise to play around in the SQL Databases.<br />
2. Be careful that you don&#8217;t have references in lets say document libraries, to the Production document libraries, as you might inadvertently update or delete these documents.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

