I’m new to TFS and needing to write a TSQL query to get a listing of all files and version numbers that were included in a particular changeset version number. While searching online for the tables to get this information I found some people mentioning to use the Tfs_Warehouse database and others that used the Tfs_DefaultCollection database. I have the following questions:
- What is the difference between the two databases?
- Why would you use one instead of the other?
- Which tables do you use to obtain the file/version information for a particular changeset?
You can use the VersionControlServer.GetChangeset() method from the TFS Object Model.
You will need to add references to the following assemblies in the GAC:
Microsoft.TeamFoundation.VersionControl.Client
Then you can inspect the .Changes property to see all the changes included in the Changeset.