SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

Migrating SharePoint Portal 2003 Database to SharePoint 2007 using Content Database Migration

There are pockets of information avaiable on migration strategies, but it's difficult to find concise instructions for migrating a content database.  By the way, I would recommend this approach over in-place or gradual simply because I don't lose sleep because it has the least risk of de-stabilizing the production SharePoint environment. 

If you are lucky enough to have a shiny new MOSS farm and you are trying to migrate the content to, then you are in the right post.  Please keep in mind that these are the simple instructions with superflous details purposely omitted.  I encourage you to research the details around each of these steps before making this your migration strategy.  You will find a few links at the end of this post that are comprehensive.  Also, I am only migrating the content database in this scenario, not the search [site]_SERV, profiles / audiences database [site]_PROF or single sign on [site]_SSO databases.  You can migrate those too by the way!

  1. Download the upgrade pre-scan tool to your current production SharePoint 2003 server.  Here's the link http://www.microsoft.com/downloads/details.aspx?familyid=e8a00b1f-6f45-42cd-8e56-e62c20feb2f1&displaylang=en
  2. If you're paranoid like me, backup your SharePoint 2003 farm using the SharePoint Backup and Restore tool.
  3. Run the pre-scan tool from your SharePoint 2003 server using the /all and /c PREUPGRADESCANCONFIG.XML.  (The XML file tells the prescan the portal templates are not custom).  The pre-scan tool will identify any issues that will cause upgrade failure; and before you ask, yes you DO need to do this step.  It will also make some harmless modifications to your SharePoint 2003 databases.  If you encounter any errors in the pre-scan tool, view the log file and correct them.
  4. Backup the SharePoint 2003 content database(s)--the [name]_SITE database(s) using Sql Server tools (2000 or 2005). I realize you already did this in step 2, but do it again anyway.
  5. Copy the backup file to your MOSS database server and restore it using Sql Server tools.  This would be a good time to give it a name consistent with your shiny new MOSS databases.
  6. Create a web application, but not a root site collection
  7. Run the following command: stsadm -o addcontentdb -url [site collection url] -databasename [name of database you restored].  This may take several hours to complete.
  8. Check out the migrated content by browsing to [site application url] and get a feel for what customizations are broken or missing.

Here are some very good comprehensive posts on content migration.  Please let me know if there are others.

MS-Advantage's SPS to MOSS 2007 Upgrade Tips (Database Migration) by Alan Coulter

WSS 3.0 & Sharepoint 2007 Database Migration Strategy Steps For Migrating A Sharepoint 2003 Site by Jason Fortner

Don't be afraid of Prescan - Part 1 by Joel Oleson

Your Friend Prescan.exe - How to Get it & What it Does - Part 2 by Joel Oleson

Deploy a new farm, then migrate databases by Microsoft

 


Posted 07-12-2007 4:59 PM by John Powell, PMP, MCPD, MCSD

Comments

Robin wrote re: Migrating SharePoint Portal 2003 Database to SharePoint 2007 using Content Database Migration
on 07-13-2007 6:17 AM

Maybe not a post about purely upgrading the content database but discusses the steps you need to take to upgrade the profile database for migrating user profiles sites and mysites.

glorix.blogspot.com/.../upgradingmigrating-story-continues.html

Raymond Little wrote UPgrading SharePoint 2003 to MOSS 2007 via Database Migration Method
on 03-14-2008 10:19 AM

UPgrading SharePoint 2003 to MOSS 2007 via Database Migration Method

Manish wrote re: Migrating SharePoint Portal 2003 Database to SharePoint 2007 using Content Database Migration
on 04-29-2008 1:47 PM

Our SPS 2003 database is in SQL Server 2000 and new MOSS 2007 will be SQL Server 2005. Can I backup SQL Server 2000 content database and restore in 2005 and then attach the sites to the database?

jc wrote re: Migrating SharePoint Portal 2003 Database to SharePoint 2007 using Content Database Migration
on 05-28-2008 9:52 AM

I just went through this in a prototype and it worked.. but not exactly the way I expected.

We are trying to take a top level site curruntly under SPS 2003 and put it under a site collection in MOSS 2007.

As a first attempt I tried to point the contentdb to an address that did not exsist.. perhaps a bad idea as it swallowed the top level site.. but did retain all the site collections underneith.

Also security of subsites under the newly migrated site did not work (different domain). Not sure how I can add users to subsites i can't access.

I then went through the db restore process (new name), created a site collection and pointit to it.. but it appeared to nothing. not even replacing the top level site this time.

I'm reviewing the upgrade.log but don't see any issues.

if anybody has the answer and  can email me at jc_pineiro((at))yah**((dot))c*m  I would really appreciated it.

Darko wrote re: Migrating SharePoint Portal 2003 Database to SharePoint 2007 using Content Database Migration
on 09-16-2008 8:33 AM

Hi,

Does anyone know how to migrate sharepoint 2003 portal 2003 root portal to a moss 2007 site collection??

Ex: on sps2003 a have two root portals:

1. http://name1

2. http://name2

on moss 2007 I want to get:

1. http://moss2007name

2. http://moss2007name/name2

where name2 is the name2 spps 2003 portal

I use database migration and successfully migrated the first step on http://moss2007name. But I don’t know how to perform second portal migration on the moss2007name/name2???

Thanks,

Darko

raheel wrote re: Migrating SharePoint Portal 2003 Database to SharePoint 2007 using Content Database Migration
on 06-24-2009 12:47 AM

Dear All

I faced problem in converting my sharepoint projects from sharepoint 2003 to sharepoint 2007. i search lot over internet and found some solution but it cannot solved my problem. Any one know the right procedure of conversion, kindly guide me how to do it.

Thanks

Regard Raheel

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.