2016-05-05 123 views
0

TF255356: The following error occurred when configuring the Team Foundation databases:TFS 2015年更新1 - TF255430:數據庫升級失敗


TF400711期間部分升級:執行

servicing step 'Upgrade Process Template Description column' for component FrameworkToDev14M85 during ToDev14M85: 2 error(s) occurred while executing upd_ProcessTemplateToDev14M85.sql script.Failed batch starts on line: 6.Error: 5074, Level: 16, State: 1, Batch Line: 6, Script Line: 11Message: The statistics 'Description' is dependent on column 'Description'.Error: 4922, Level: 16, State: 9, Batch Line: 6, Script Line: 11Message: ALTER TABLE ALTER COLUMN Description failed because one or more objects access this column.================ Failed batch begin ==========================--small table, so no need to batchUPDATE tbl_ProcessTemplateDescriptorSET Description = LEFT(Description, 1024)--no race condition as binaries aren't allowing people to save > 1024 length templates ALTER TABLE tbl_ProcessTemplateDescriptor ALTER COLUMN Description NVARCHAR(1024)================ Failed batch end**

時發生錯誤,而升級的Team Foundation Server 2012來更新你得到一個錯誤1「TF254027:您必須在繼續之前更正所有錯誤」,「TF255375:您指定的配置數據庫不能使用」以及「TF255430:數據庫在升級失敗期間部分升級」。

回答

1

錯誤看起來混亂和簡單試圖更改表,因爲表

tbl_ProcessTemplateDescriptor

運行在tfs_configuration數據庫以下查詢生成統計自動 阿爾特失敗

SELECT 'DROP STATISTICS ' + Schema_NAME(d.Schema_id) + '.' + '['+ OBJECT_NAME(a.object_id) + '].[' + a.name +']' FROM sys.stats a INNER JOIN sys.Objects d ON d.Object_id = a.object_id WHERE auto_created = 0 AND User_Created = 1 

步驟來解決它 1.恢復從備份中tfs_configuration數據庫您收到1安裝 2.將更新在恢復的數據庫 3.重新運行升級嚮導更新1 4.所有應該很好地執行上面的查詢結果並且取得了成功

刪除所有統計信息的另一個查詢窗口