我阅读了有关从TFS 2008到2012的升级过程的所有内容。
但我的情况有点不同。我需要将数据从tfs 2008(sqlserver 2003)移动到tfs 2012(sqlserver 2008 R2),而不会损坏TFS 2012数据。
最佳做法是什么?
添加一些问题:
我试图在不损坏任何数据的情况下尽可能谨慎。 所以我有: 1.正在使用sqlserver 2005的旧服务器TFS 2008 2个带有TFS 2012和sqlserver 2008 R2的演示服务器,上面有一些集合和项目(这是我们拥有并正在使用的服务器的副本)。
主要目的是将所有数据传输到2012服务器并终止旧计算机。 我所做的是从sqlserver 2005获取备份并将所有tfs * db恢复到演示服务器。 TfsActivityLogging TfsBuild TfsIntegration TfsVersionControl TfsWarehouse TfsWorkItemTracking TfsWorkItemTrackingAttachments
之后我在演示服务器上运行“tfsconfig import”。
TfsConfig Import / SQLInstance:SQLSERVERNAME / CollectionName:DemoImportCollection / confirmed
失败了:
Creating temporary structures... (169 of 502)
[Info @15:45:36.159] [2014-01-14 15:45:33Z][Error] TF400744: An error occurred while executing the following script: UpgradeTestResults_OrcasToDev10Beta1.sql. Failed batch starts on the line 613. Statement line: 23. Script line: 635. Error: 2627 Violation of PRIMARY KEY constraint 'PK__tmp_tbl___1786A43E234A136B'. Cannot insert duplicate key in object 'dbo.tmp_tbl_OrcasTestOutcomeLookUp'. The duplicate key value is (?«ƒ??????????????¢???????????ƒ). (169 of 502)
[Info @15:45:36.159] [2014-01-14 15:45:34Z][Informational] Microsoft.TeamFoundation.Framework.Server.CollectionServicingException: TF400744: An error occurred while executing the following script: UpgradeTestResults_OrcasToDev10Beta1.sql. Failed batch starts on the line 613. Statement line: 23. Script line: 635. Error: 2627 Violation of PRIMARY KEY constraint 'PK__tmp_tbl___1786A43E234A136B'. Cannot insert duplicate key in object 'dbo.tmp_tbl_OrcasTestOutcomeLookUp'. The duplicate key value is (?«ƒ??????????????¢???????????ƒ).
at Microsoft.TeamFoundation.Framework.Server.SqlScriptResourceComponent.ExecuteScripts(List`1 scripts, SqlParameter[] sqlParameters, List`1 serviceVersions, Boolean acquireLock)
at Microsoft.TeamFoundation.Server.Servicing.TFCollection.FrameworkStepPerformer.ExecuteSql(String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.Microsoft.TeamFoundation.Framework.Server.IStepPerformer.PerformStep(String servicingOperation, String stepType, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation) (169 of 502)
[Warning@15:45:36.596] TF255185: Encountered a warning during operation. Message=[2014-01-14 15:45:34Z] Servicing step Upgrade Test Results failed. (ServicingOperation: UpgradePreTfs2010Databases; Step group: Upgrade.TfsTestManagement).
[Info @15:45:36.627] [2014-01-14 15:45:34Z] Servicing step Upgrade Test Results failed. (ServicingOperation: UpgradePreTfs2010Databases; Step group: Upgrade.TfsTestManagement) (169 of 502)
[Info @15:45:36.627] [2014-01-14 15:45:34Z][Informational] Removing item. Key: TargetRequestContext. (169 of 502)
[Info @15:45:36.627] [2014-01-14 15:45:34Z][Informational] Clearing dictionary, removing all items. (169 of 502)
[Warning@15:45:36.659] TF255185: Encountered a warning during operation. Message=TF255271: The team project collection could not be created. The number of steps before the completion of project creation is: 502. The number of steps completed before the failure was 169..
[Warning@15:45:37.690] Warning Message: [2014-01-14 15:45:34Z] Servicing step Upgrade Test Results failed. (ServicingOperation: UpgradePreTfs2010Databases; Step group: Upgrade.TfsTestManagement)
[Warning@15:45:37.690]
[Warning@15:45:37.737] Warning Message: TF255271: The team project collection could not be created. The number of steps before the completion of project creation is: 502. The number of steps completed before the failure was 169.
[Warning@15:45:37.737]
我怀疑是因为数据库中的希伯来字符将临时导入表转换为问号(“?????”)而发生此问题
感谢解决此问题的任何帮助或指示。
此致
埃雷兹
答案 0 :(得分:2)
您可以使用TFS集成平台。它将迁移所有文件和历史记录。如果您有TFS工作项,也可以迁移它们(如果您在2012服务器上也使用相同的项目模板)
您需要知道的两个小问题:
1)迁移后,历史记录将包含迁移时的日期时间,但您可以在评论中看到实际的日期时间。
2)它还会在您的评论中添加额外的文字,说明您使用集成平台进行迁移。
答案 1 :(得分:0)
在尝试了所有事情后(没有触及真实数据)我成功了。
我决定将升级过程分为两个2008-2010和2010-2012。
这个过程很顺利。
感谢大家的帮助
Erez.h