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 7713193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:48:45+00:00 2026-06-01T01:48:45+00:00

Does anyone know exactly how this value is derived? For half our team it

  • 0

Does anyone know exactly how this value is derived?

For half our team it seems to be “FistName.LastName”. For the other half it is “FirstName LastName”…

I thought I would be able to find this out in five seconds of googling but all I can find are vague statements that say “the current user” or “the current users alias”.

The MSDN article about query variables here describes it as being the current users alias but I have no idea what that means….

  • 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-06-01T01:48:47+00:00Added an answer on June 1, 2026 at 1:48 am

    When running a query in Visual Studio, TFS is building an SQL query for it. If you run SQL Server Profiler on the Tfs_DefaultCollection database you should notice a similar query:

    exec sp_executesql N'set nocount on
    declare @PersonId as int
    declare @rebuildOK as int
    declare @PersonName as nvarchar(255)declare @userSid as nvarchar(256)
    set @userSid=@P1
    exec @rebuildOK=dbo.RebuildCallersViews @PersonId output,@P1
    if @rebuildOK<>0 return
    DECLARE @AsOfUtc DATETIME; SET @AsOfUtc=@P2
    DECLARE @Ids TABLE (Id INT NOT NULL)
    INSERT INTO @Ids SELECT X.ID FROM (
    SELECT @P3 AS ID
    UNION ALL
    SELECT @P4 AS ID
    ) as X
    
    join  dbo.[WorkItemsLatestUsed] RL
    on X.ID = RL.[System.Id]
    where RL.[System.AreaID] not in
    (
        select V.BelowID
        from dbo.[GetInverseUserPermissions](@userSid,1) V
    )
    option (loop join)
    
    
    SELECT I.[System.Id],I.[System.Rev],I.[System.AreaId],I.[System.IterationId],I.[System.WorkItemType],I.[System.AssignedTo]
    FROM @Ids Ids
    JOIN [dbo].[WorkItemsAsOf] I with (nolock)
    ON I.[System.Id] = Ids.[Id]
        AND I.[System.ChangedDate] <= @AsOfUtc
        AND @AsOfUtc < I.[System.RevisedDate]
    OPTION (LOOP JOIN)
    set nocount off
    ',N'@P1 nvarchar(4000),@P2 datetime,@P3 int,@P4 int',@P1=N'S-1-5-21-3698201826-3150490006-716737659-1107',@P2='2012-03-24 19:48:09.707',@P3=1266,@P4=1587
    

    Note the use of dbo.RebuildCallersViews stored procedure which in turn serves the @userSid variable and ultimately the temporary I.[System.AssignedTo] column. Stored procedures in TFS database are protected so I couldn’t decipher what’s going beyond that.

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

Sidebar

Related Questions

Does anyone know how exactly the asset digest value is calculated? If I have
Does anyone know of a up-to-date jquery plugin that does exactly what this does:
Does anyone know exactly what happens when you change your Zend site at, say,
Does anyone know how to shuffle two arrays randomly in exactly the same way
does anyone know a way how I could set through mapping the default value
Does anyone know how exactly RSLs work with AIR? I have a terminal server
Does anyone know how exactly NTLM authentication works in WCF/basicHttp? I wonder if user
Does anyone know how to change icons in Silverlight outofbrowser application?
Does anyone know if views states (used in Silverlight) will be available in next
Does anyone know how to add an item to a list but do it

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.