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

  • SEARCH
  • Home
  • 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 537091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:53:25+00:00 2026-05-13T09:53:25+00:00

Is there a way to query TFS database to get the last 10 check-in

  • 0

Is there a way to query TFS database to get the last 10 check-in details

The output should be something like

File name    |      Comment              |   Changed By     |     Date
----------------------------------------------------------------------------
Test.cs         Added new functionality       username           01/08/2010

I am aware that the above result set can be obtained using TFS SDK. But I want to know if
there is a way to query the TFS database to fetch the above data.

Thanks

  • 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-13T09:53:25+00:00Added an answer on May 13, 2026 at 9:53 am

    As a workaround how about the below query.. But i think it is returning me the wrong comments.. not sure why.

    SELECT top 10
    C.ChangeSetId, 
    V.FullPath, 
    V.ParentPath, 
    REPLACE(V.ChildItem,'\','') as [FileName], 
    C.CreationDate, 
    I.DisplayName,
    C.Comment
    FROM tbl_Version(nolock) V
    INNER JOIN tbl_File (nolock) F ON V.ItemId = F.ItemId
    INNER JOIN tbl_Changeset (nolock) C ON V.VersionTo = C.ChangeSetId
    INNER JOIN tbl_Identity (nolock) I ON C.CommitterId = I.IdentityId
    where v.ParentPath like '$\' + (select name from [TfsWorkItemTracking].[dbo].[treenodes] where parentid=0 and fdeleted=0 and id=524) + '\%'
    order by C.CreationDate desc
    

    Thanks to mark.crockett for posting the above query @ http://social.msdn.microsoft.com/Forums/en-US/tfsreporting/thread/32d2c27e-825b-43bb-b156-36048a3e70cb/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi Is there a way to query who broke the last build in TFS
Is there a way to query a MySQL table and get the last date
Is there a way to query the database and retrieve a list of all
Is there a way to query a MySQL database that gives me all blobs
Is there a easy way to query a table for its constraints(foreignkeys specificaly) like
Is there any way to get the work item query results preview pane to
Is there any way to query the name of the current method if you've
Hey all is there any way to query a text file using OleDB or
I'm wondering if there's a way to write a tfs query such that when
Is there any way to query ACLs on Linux programmatically? Given a file or

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.