2

有人知道 TFS 2010 Warehouse 数据库(应该用于报告的数据库)是否保留有关变更集的签入注释的任何信息?

我可以通过 TFS Explorer 看到信息,像这样

tfs 评论的图片

但是,如果我尝试从 Warehouse 数据库中提取相同的信息,同时从变更集和代码搅动表中选择每个数据,我将无法找到它(我还尝试打开每个数据库表!)

select * from FactWorkItemChangeset fwics
join DimChangeset dcs on fwics.ChangesetSK=dcs.ChangesetSK
where dcs.ChangesetID = 145640

提前致谢。

问候马西莫

4

2 回答 2

1

Tfs_Warehouse.dbo.DimChangeset 中的ChangeSet Title字段具有注释,尽管它与更改集编号相连。您的查询确实返回了该字段。

于 2010-09-21T19:44:42.453 回答
0

示例查询:

select 
fwics.WorkItemID as [Work Item Id]
,dwi.System_Title as [Title]    
,dwi.System_WorkItemType as [Type]
,dcs.ChangesetID as ChangeSet_ID
,dcs.ChangesetTitle as [Comment]
,df.FileName as [FileName]
,df.FilePath as [Path]
,dd.DateTime as [CheckinDate]
,dp.Name as [Person]
from
DimChangeset dcs
join FactWorkItemChangeset fwics on dcs.ChangesetSK=fwics.ChangesetSK
join FactCodeChurn fcc on fwics.ChangesetSK=fcc.ChangesetSK
join DimFile df on fcc.FilenameSK=df.FileSK
join CurrentWorkItemView dwi on dwi.System_Id=fwics.WorkItemID
join DimDate dd on dd.DateSK=fcc.DateSK
join DimPerson dp on dp.PersonSK=dcs.CheckedInBySK
and fcc.TeamProjectSK = 80
order by [CheckinDate] desc
于 2010-09-22T06:59:32.397 回答