Migrate TFS 2008 data to TFS 2010 Project Collection
1) Stop the TFS 2008 IIS application pool and web site on the old TFS server instance. This makes sure no one is actively changing data while we do the migration.
2) do a SQL server backup of all tfs* databases from the old TFS 2008 instance. In most cases this will be SQL server 2005 - the TFS 2010 upgrade commands will not work running against databases in SQL server 2005.
TfsActivityLogging
TfsBuild
TfsIntegration
TfsVersionControl
TfsWarehouse
TfsWorkItemTracking
TfsWorkItemTrackingAttachments
3) restore these databases to the SQL server 2008 instance used by the TFS 2010 instance.
4) From the TFS 2010 server, run a command similar to the following ( you can run TfsConfig.exe import /help for more details)
Where "MySQLServer2008Instance" is the SQL server 2008 instance used by your TFS 2010 instance, and "tfs2008_import" is the name of the collection to create in TFS2010 for your imported data.
Once the import/upgrade is complete, all the old databases listed in step 2 are removed for you, leaving a database named tfs_tfs2008_import which TFS 2010 will use from now on to manage your collection in SQL server.