在TFS2010仓库中查找签到评论信息

时间:2010-09-03 10:14:55

标签: tfs2010

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

我可以通过TFS资源管​​理器查看信息,就像这样

image of tfs comments

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

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

提前致谢。

此致 马西莫

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分: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