Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6135837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:31:41+00:00 2026-05-23T17:31:41+00:00

Currently, our DBAs require the TFS changeset number for any scripts/stored procedures/functions that need

  • 0

Currently, our DBAs require the TFS changeset number for any scripts/stored procedures/functions that need to get deployed. I have a folder in our TFS project with all of my stored procedures in it, and I’d like to run a single query that will list each object in that folder and the latest changeset. I’m using VS2010 Team Explorer with TFS Server 2008 (I believe), and would be happy to script it in PowerShell or some other tool, but don’t know where to begin. Can someone provide me some direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:31:42+00:00Added an answer on May 23, 2026 at 5:31 pm

    TFS has a lot of extensibility points that make running a query like this possible. If it were me, I’d simply use the tf.exe command-line client. For example:

    tf properties $/Path/To/Folder -recursive
    

    This will show you the latest changeset for each of the files beneath the given folder (as well as other information.)

    While the output from the command-line client is well-formed and easily parseable, you may still prefer a more programmatic way to do it. You can use the very powerful .NET API in order to query from the server. You’ll want to call the VersionControlServer.GetItems method. For example:

    ItemSet items = vcs.GetItems(@"$/Path/To/Folder", RecursionType.Full);
    

    If you haven’t yet, you should take a look at the TFS 2008 Power Tools, which include the TFS Power Shell Extensions. My powershell-fu is weak, but I think that the above in Power Shell works out to be something like:

    $tfs = get-tfs http://yourserver:8080/tfs/YourCollection
    $tfs.VCS.GetItems('$/Path/To/Folder', $tfs.RecursionType::Full)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently all our files are stored on a Windows network drive and with 15
Currently in our enterprise we have a situation that i think it's not very
We don't currently have our SQL Server objects in any form of source control.
Currently in our research group, we have many data files stored on three servers
Our desktop application require to be updated directly when a mobile employee sends any
Currently our project is not having any SSL Security. All of the URLs in
Currently our Java application uses the values held within a tab delimited *.cfg file.
Currently our developent enviroment consists of a Dev server, a Staging server and a
Currently our website uses links to allow the user to change their locale. The
Currently our queries add a variety of Restrictions to ensure the results are considered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.