Why can't I attach TFS to a Project Collection that was restored to SQL Server (I think) correctly?

后端 未结 3 923
醉酒成梦
醉酒成梦 2021-01-13 00:45

We tried moving a TFS Project Collection from one TFS 2010 server to another.

  1. Detached the collection in TFS Console on source server
  2. Backed up the co
相关标签:
3条回答
  • 2021-01-13 01:25

    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
    
    0 讨论(0)
  • 2021-01-13 01:37

    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:

    • You made a backup of you TFS database
    • You upgraded TFS version (TFS migrated your database - it became another version)
    • You restored your backup (TFS database version is now older that TFS version itself)
    0 讨论(0)
  • 2021-01-13 01:41

    This worked for me...

    1. 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

    2. 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"

    0 讨论(0)
提交回复
热议问题