Table WorkItemsLatest (TFS 2010) missing in TFS 2015 (Collection Database)

[亡魂溺海] 提交于 2020-01-02 11:22:46

问题


We recently migrated from TFS 2010 to TFS 2015 and came across that some of the reporting services are not working anymore.

One of the view we created was pulling various information (WorkItem State, Title,Fld10118) from "WorkItemsLatest" table, however, checking the collection database of TFS 2015 indicates that there is no more "WorkItemsLatest" table in TFS 2015 collection database.

I would appreciate if you can advise how to get above mentioned fields in TFS 2015 collection database. I understand that the operational databases are not supported by Microsoft and encourages to retrieve data from Warehouse database, however, we would like to retrieve this data and will allocate some development time in the future to ensure that data is retrieved from the Warehouse database.


回答1:


WARNING

Even though you've already mentioned this yourself, querying the database tables directly can lead to breaking functionality between updates. With the recent amount of churn in the work item space (new template customization features landing on VSTS and probably coming to TFS vNext and the new workitem form), expect these items to keep changing in the near future.

Ok, I get it

So, you're probably looking for the following two views:

  • [Tfs_DefaultCollection].[dbo].[vw_denorm_WorkItemCoreLatest]
  • [Tfs_DefaultCollection].[dbo].[vw_denorm_WorkItemCustomLatest]

And join them with tbl_Field to be able to identify which Custom Field ID matches which Field Name.



来源:https://stackoverflow.com/questions/36791335/table-workitemslatest-tfs-2010-missing-in-tfs-2015-collection-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!