Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

TFS 2013 DB - query to get Team project collections, team projects and team projects description

$
0
0

Hi,

I'm trying to create a TFS report using Report builder and i've encountered some difficulties.

The report should include all TFS Team Project Collection with all their Team Projects and Team Project description. All i know is that teamProject description can be found in the [dbo].[tbl_CatalogResource] table , also i've found 2 ways to get Collection>TeamProject hierarchy. But i cannot found how to join Tfs_Configuration table with the part that gets Collection->TeamProject.

here are queries that i use to get the hierarchy:

SELECT

  coll.PartitionId
  ,coll.InternalScopeId
  ,coll.ScopeId
  ,coll.LocalScopeId
  ,coll.ParentPath
  ,coll.Name as [collection]
  ,coll.SecuringHostId
,tp.Name as [TeamProject]
FROM
  tbl_GroupScope coll, tbl_GroupScope tp
where coll.scopeType= 1
and coll.Active = 'True'
and coll.SecuringHostId = tp.SecuringHostId
and tp.scopeType= 2
and tp.Active = 'True'

2 using [Tfs_Warehouse]

SELECT
  coll.ProjectNodeSK
  ,coll.ProjectNodeGUID
  ,coll.ProjectNodeName as [collection]
  ,tp.ProjectNodeName as [TeamProject]
FROM
  DimTeamProject coll, DimTeamProject tp
where coll.ProjectNodeType = 1
and coll.IsDeleted = 'False'
and tp.ProjectNodeType = 0
and tp.IsDeleted = 'False'
and coll.ParentNodeSK = tp.ParentNodeSK

Could you please help with this?

Thank you.


Viewing all articles
Browse latest Browse all 6687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>