We tried moving a TFS Project Collection from one TFS 2010 server to another.
Make sure both the TFS service level and SQL server versions match the previous server.
You can verify this information using SQL Management Studio > Databases
> Tfs_Configuration
or Tfs_DefaultCollection
> Properties
> Extended Properties
Note these properties:
TFS_PRODUCT_VERSION 10.0.40219.1 TFS_SCHEMA_VERSION Microsoft Team Foundation Server 2010 (SP1) TFS_SERVICE_LEVEL Tfs2010.SP1.KB2182621.P#1
Also note the SQL version under <database instance name>
> Properties
> General
Version 10.50.2500.0
Just as additional information...
KMoraz if right. Both TFS and SQL Server are made to run together at the same version (The Major version).
To explain how you probably get there is:
This worked for me...
Actions to perform on TFS 2010
1.1 Using the TFS console "Detach" the collection from the "TFS server"
1.2 Using the SQl Manager "Detach" the database for the corresponding TFS collection
Actions to perform on TFS 2012
2.1 Using the SQl Manager "attach" the database for the corresponding TFS collection
2.2 Make sure to give the TFS user account/s access to the database otherwise the TFS server will not be able to access it.
2.3 Using the TFS console "attach" the collection to the "TFS server"