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

TFS 2017 + Sharepoint 2013 + Work Item = Form element cannot contain an element of type Unknown

$
0
0

Hello everyone,

I'm having some problems when i try to add a "New work item" or when i try to "Open a work item" using the sharepoint team site. It doesn't matter the template that i use(Agile, scrum and etc), everytime i get the error 'Form' element cannot contain an element of type 'Unknown' when creating or opening a work item! It's just on the sharepoint team site, if i use the tfs web portal, then everything works, I can create and open work items and the work items created using the tfs web portal appear on the sharepoint team portal as they should, but like i said above i can't open them because of the error.

Image of the problem: http://image.prntscr.com/image/34e6b27d613d4a529cfe2c1c85b0f268.png

The environment:


Machine 1 - TFS 2017 on Windows Server 2012 R2, with MS SQL Server 2014 SP2 + Cumulative update 2(Build 12.0.5522);
Machine 2 - SharePoint 2013 SP1 (with November, 2016, cumulative update) on Windows Server 2012 R2 + TFS 2017 Sharepoint Extension Tools;
Machine 3 - MS SQL Server 2014 SP2 + Cumulative update 2(Build 12.0.5522) on Windows Server 2012 R2 (Used by SharePoint);

/\ this is an upgrade that i did a few days ago from our tfs 2015 update 3 environment, that was also an upgrade from our older tfs 2010 environment, the older tfs 2010 environment didn't have sharepoint! I installed sharepoint after i did the upgrade from TFS 2010 SP1 to TFS 2015 update 3 to test the sharepoint portal because we need to start using it! I did not have any problem with the upgrade from TFS 2010 SP1 to TFS 2015 update 3 and after to TFS 2017(no errors at all during the upgrade)!

Another small problem, is that i don't remember if this issue('Form' element cannot contain an element of type 'Unknown') was happening when i was using the sharepoint team site with TFS 2015 update 3.



Is there an API for updating the TFS Test Case Area path and Priority using the Test Management Client API

$
0
0

Is there an API for updating the TFS Test Case Area path and Priority using the Test Management Client API, Presently I am able to create a test case with Title, Steps, Attchments and comments only. I am unable to update any other fields. Is there a way to do it?

Any help would be greatly appreciated.

Service Hooks - Web Hook timing out

$
0
0
I have a web hook set up to run when a check-in occurs to call a WCF service and promote the checkedin code to Dynamics CRM. The process to import the code and publish in CRM takes 2-10 minutes depending on number of changes, and current system load. My problem is that while the service is finishing successfully the Web Hook is reporting Error after a minute. I am assuming that this is because there is a timeout somewhere on the service hook, but I am not sure how to get around this, or update it. Any thoughts/suggestions?

Connecting to service using personal access token

$
0
0

Every time i decide to connect github as a new End point. i get the following message:

Connecting to service using personal access token

nothing else happens after that. why is this happening

Random, odd behavior in TFS.

$
0
0

It started out as random session timeouts for random people. This started after upgrading TFS 2015U1 to U3.

Things I’ve done:

Cleaned up two erroneous IPs that were on the server that never should have been there.

Cleaned up Corporate DNS records that were referencing bad IPs for the server.

Upgraded TFS 2015U3 to TFS 2017

Upgraded SQL to 2016 Standard from 2014 Express.

Moved some of the project databases to the same instance as the TFS Configuration database, and cleared the TFS cache directory.

Timeout tweaks.

Did a repair install on TFS.

Worked with the networking team to see if they’re noticing any traffic issues, but when they worked with Jeremy Ford, actual connectivity to the server was never lost, just HTTP traffic.

The server is far from being taxed.

 Now we're getting "The required anti-forgery cookie "__RequestVerificationToken_L3Rmcw2" is not present, and form and something cookie are mismatched.

Also, the "Assigned to me" query starts running as the first person to log in to TFS instead of the person actually running it even though the criteria is @me.

Any help is appreciated.

Process Editor for Work Item Customization in TFS 2017

$
0
0

I use Process Editor in Visual Studio 2015 to customize work items (Epic, Story, Task...etc) and to import/export into TFS 2015. It has been working great. Now that TFS 2017 is released, I am looking at updating to TFS 2017. However, i see the below note as a known issue in TFS 2017.  Can someone clarify is the open issue with Power Tools will also impact Process Editor. Do I need to have VS2017 to use Process Editor.

There are no Power Tools for Team Foundation Server 2017

  • Issue:

    No Power Tools have been released for TFS 2017.

  • Workaround:

    We are excited to let you know that most of the previous Power Tools have been integrated into TFS 2017. The Process Template Editor is one that has not been integrated, but we are going to publish a Process Template Editor tool for TFS 2017 to the Visual Studio Gallery shortly after TFS 2017 is available. We will provide the link here as soon as it’s published.


TFS 2013 Collection Upgrade stuck on Step 61

$
0
0

Hi all,

I have an incident doing a TFS 2013 Update 4 upgrade to TFS 2015 Update 3.

 

The problem is in the upgrade process are stuck on step 61.

 

I execute one Stored Procedure  EXECprc_QueryWhatsRunning and the result is (please see an attachment)

 

144	35523	35522,145	INSERT	0	IF NOT EXISTS (SELECT * FROM dbo.tbl_PropertyValue_Dataspace)
BEGIN
BEGIN TRAN
/*****************************************************************************
* upd_tbl_PropertyValue_DataspaceInsert
***************************************************	INSERT  tbl_PropertyValue_Dataspace WITH (TABLOCK)
        (PartitionId, DataspaceId, ArtifactId, InternalKindId, Version, PropertyId, IntValue, DatetimeValue, LeadingStringValue,
        TrailingStringValue, DoubleValue, BinaryValue, ChangedDate, ChangedBy)
SELECT  pv.PartitionId,
        ds.DataspaceId,
        pv.ArtifactId,
        pv.InternalKindId,
        pv.Version,
        pv.PropertyId,
        pv.IntValue,
        pv.DatetimeValue,
        pv.LeadingStringValue,
        pv.TrailingStringValue,
        pv.DoubleValue,
        pv.BinaryValue,
        pv.ChangedDate,
        pv.ChangedBy
FROM    dbo.tbl_PropertyValue pv
JOIN    tbl_PropertyArtifactKind pak
ON      pak.PartitionId = pv.PartitionId
        AND pak.InternalKindId = pv.InternalKindId
JOIN    tbl_Dataspace ds
ON      ds.PartitionId = pv.PartitionId
        AND ds.DataspaceCategory = CASE WHEN pak.DatabaseCategory = 'Framework' THEN 'Default' ELSE pak.DatabaseCategory END
        AND ds.DataspaceIdentifier = '00000000-0000-0000-0000-000000000000'
WHERE   NOT (
            -- For on-prem, skip code churn properties w/ Version <= @skipCodeChurnAtOrBefore
            @skipCodeChurnAtOrBefore IS NOT NULL
            AND pv.PartitionId = 1
            AND pak.KindId = '980F2101-6236-48CB-924E-8DA58146585C'
            AND pv.Version <= @skipCodeChurnAtOrBefore
            AND pv.PropertyId IN (@codeChurnDetailsPropertyId, @codeChurnRetryCountPropertyId)
        ) 	RESOURCE_SEMAPHORE	35521851	RESOURCE_SEMAPHORE		1	15	8200	266	0	558512	NULL	1	<ShowPlanXML xmlns="http://schemas.microsoft.com/sqlserver/2004/07/showplan" Version="1.2" Build="11.0.3393.0"><BatchSequence><Batch><Statements><StmtSimple StatementText="** Encrypted Text **" StatementId="1" StatementCompId="391" StatementType="INSERT" RetrievedFromCache="true" StatementSubTreeCost="1828.52" StatementEstRows="100268" StatementOptmLevel="FULL" QueryHash="0x122D0E8138663726" QueryPlanHash="0xFAEB8722469A28ED"><StatementSetOptions QUOTED_IDENTIFIER="true" ARITHABORT="false" CONCAT_NULL_YIELDS_NULL="true" ANSI_NULLS="true" ANSI_PADDING="true" ANSI_WARNINGS="true" NUMERIC_ROUNDABORT="false" /><QueryPlan NonParallelPlanReason="MaxDOPSetToOne" CachedPlanSize="64" CompileTime="28" CompileCPU="20" CompileMemory="1216"><MemoryGrantInfo SerialRequiredMemory="512" SerialDesiredMemory="1037728" /><OptimizerHardwareDependentProperties EstimatedAvailableMemoryGrant="209692" EstimatedPagesCached="18508" EstimatedAvailableDegreeOfParallelism="1" /><RelOp NodeId="0" PhysicalOp="Clustered Index Insert" LogicalOp="Insert" EstimateRows="100268" EstimateIO="697.501" EstimateCPU="0.100268" AvgRowSize="9" EstimatedTotalSubtreeCost="1828.52" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList /><Update DMLRequestSort="1"><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Index="[PK_tbl_PropertyValue_Dataspace]" IndexKind="Clustered" /><SetPredicate><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[PartitionId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DataspaceId] = [Tfs_DefaultCollection].[dbo].[tbl_Dataspace].[DataspaceId] as [ds].[DataspaceId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ArtifactId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ArtifactId] as [pv].[ArtifactId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[InternalKindId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[InternalKindId] as [pv].[InternalKindId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[Version] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[Version] as [pv].[Version],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[PropertyId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[IntValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[IntValue] as [pv].[IntValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DatetimeValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[DatetimeValue] as [pv].[DatetimeValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[LeadingStringValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[LeadingStringValue] as [pv].[LeadingStringValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[TrailingStringValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[TrailingStringValue] as [pv].[TrailingStringValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DoubleValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[DoubleValue] as [pv].[DoubleValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[BinaryValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[BinaryValue] as [pv].[BinaryValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ChangedDate] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ChangedDate] as [pv].[ChangedDate],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ChangedBy] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ChangedBy] as [pv].[ChangedBy]"><ScalarExpressionList><ScalarOperator><MultipleAssign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="PartitionId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DataspaceId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ArtifactId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="InternalKindId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="Version" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="PropertyId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="IntValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DatetimeValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="LeadingStringValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="TrailingStringValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DoubleValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="BinaryValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ChangedDate" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ChangedBy" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /></Identifier></ScalarOperator></Assign></MultipleAssign></ScalarOperator></ScalarExpressionList></ScalarOperator></SetPredicate><RelOp NodeId="1" PhysicalOp="Sort" LogicalOp="Sort" EstimateRows="100268" EstimateIO="1129.14" EstimateCPU="0.890918" AvgRowSize="8434" EstimatedTotalSubtreeCost="1130.92" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OutputList><MemoryFractions Input="1" Output="1" /><Sort Distinct="0"><OrderBy><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></OrderByColumn><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></OrderByColumn><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /></OrderByColumn><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OrderByColumn><OrderByColumn Ascending="0"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /></OrderByColumn><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></OrderByColumn></OrderBy><RelOp NodeId="2" PhysicalOp="Merge Join" LogicalOp="Inner Join" EstimateRows="100268" EstimateIO="0" EstimateCPU="0.364855" AvgRowSize="8434" EstimatedTotalSubtreeCost="0.886217" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OutputList><Merge ManyToMany="0"><InnerSideJoinColumns><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></InnerSideJoinColumns><OuterSideJoinColumns><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /></OuterSideJoinColumns><Residual><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_Dataspace].[PartitionId] as [ds].[PartitionId]=[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId] AND [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[InternalKindId] as [pak].[InternalKindId]=[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[InternalKindId] as [pv].[InternalKindId] AND ([@skipCodeChurnAtOrBefore] IS NULL OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId]&lt;&gt;(1) OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[KindId] as [pak].[KindId]&lt;&gt;{guid'980F2101-6236-48CB-924E-8DA58146585C'} OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[Version] as [pv].[Version]&gt;[@skipCodeChurnAtOrBefore] OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId]&lt;&gt;[@codeChurnRetryCountPropertyId] AND [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId]&lt;&gt;[@codeChurnDetailsPropertyId])"><Logical Operation="AND"><ScalarOperator><Compare CompareOp="EQ"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></Identifier></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Compare CompareOp="EQ"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></Identifier></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Logical Operation="OR"><ScalarOperator><Identifier><ColumnReference Column="ConstExpr1010"><ScalarOperator><Compare CompareOp="IS"><ScalarOperator><Identifier><ColumnReference Column="@skipCodeChurnAtOrBefore" /></Identifier></ScalarOperator><ScalarOperator><Const ConstValue="NULL" /></ScalarOperator></Compare></ScalarOperator></ColumnReference></Identifier></ScalarOperator><ScalarOperator><Compare CompareOp="NE"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></Identifier></ScalarOperator><ScalarOperator><Const ConstValue="(1)" /></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Compare CompareOp="NE"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></Identifier></ScalarOperator><ScalarOperator><Const ConstValue="{guid'980F2101-6236-48CB-924E-8DA58146585C'}" /></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Compare CompareOp="GT"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Column="@skipCodeChurnAtOrBefore" /></Identifier></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Logical Operation="AND"><ScalarOperator><Compare CompareOp="NE"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Column="@codeChurnRetryCountPropertyId" /></Identifier></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Compare CompareOp="NE"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Column="@codeChurnDetailsPropertyId" /></Identifier></ScalarOperator></Compare></ScalarOperator></Logical></ScalarOperator></Logical></ScalarOperator></Logical></ScalarOperator></Residual><RelOp NodeId="3" PhysicalOp="Nested Loops" LogicalOp="Inner Join" EstimateRows="14.8039" EstimateIO="0" EstimateCPU="7.106e-005" AvgRowSize="39" EstimatedTotalSubtreeCost="0.0150699" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OutputList><NestedLoops Optimized="0"><OuterReferences><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Column="Expr1013" /></OuterReferences><RelOp NodeId="4" PhysicalOp="Compute Scalar" LogicalOp="Compute Scalar" EstimateRows="17" EstimateIO="0" EstimateCPU="1.7e-006" AvgRowSize="291" EstimatedTotalSubtreeCost="0.00918616" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /><ColumnReference Column="Expr1013" /></OutputList><ComputeScalar><DefinedValues><DefinedValue><ColumnReference Column="Expr1013" /><ScalarOperator ScalarString="CASE WHEN [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[DatabaseCategory] as [pak].[DatabaseCategory]=N'Framework' THEN N'Default' ELSE [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[DatabaseCategory] as [pak].[DatabaseCategory] END"><IF><Condition><ScalarOperator><Compare CompareOp="EQ"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></Identifier></ScalarOperator><ScalarOperator><Const ConstValue="N'Framework'" /></ScalarOperator></Compare></ScalarOperator></Condition><Then><ScalarOperator><Const ConstValue="N'Default'" /></ScalarOperator></Then><Else><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></Identifier></ScalarOperator></Else></IF></ScalarOperator></DefinedValue></DefinedValues><RelOp NodeId="5" PhysicalOp="Nested Loops" LogicalOp="Inner Join" EstimateRows="17" EstimateIO="0" EstimateCPU="7.106e-005" AvgRowSize="53" EstimatedTotalSubtreeCost="0.00918446" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></OutputList><NestedLoops Optimized="0"><OuterReferences><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></OuterReferences><RelOp NodeId="6" PhysicalOp="Index Scan" LogicalOp="Index Scan" EstimateRows="17" EstimateIO="0.003125" EstimateCPU="0.0001757" AvgRowSize="31" EstimatedTotalSubtreeCost="0.0033007" TableCardinality="17" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /></OutputList><IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"><DefinedValues><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /></DefinedValue></DefinedValues><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Index="[IX_tbl_PropertyArtifactKind_InternalKindId]" Alias="[pak]" IndexKind="NonClustered" /></IndexScan></RelOp><RelOp NodeId="8" PhysicalOp="Clustered Index Seek" LogicalOp="Clustered Index Seek" EstimateRows="1" EstimateIO="0.003125" EstimateCPU="0.0001581" AvgRowSize="267" EstimatedTotalSubtreeCost="0.0058127" TableCardinality="17" Parallel="0" EstimateRebinds="16" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></OutputList><IndexScan Lookup="1" Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"><DefinedValues><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></DefinedValue></DefinedValues><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Index="[PK_tbl_PropertyArtifactKind]" Alias="[pak]" TableReferenceId="-1" IndexKind="Clustered" /><SeekPredicates><SeekPredicateNew><SeekKeys><Prefix ScanType="EQ"><RangeColumns><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></RangeColumns><RangeExpressions><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[PartitionId] as [pak].[PartitionId]"><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /></Identifier></ScalarOperator><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[KindId] as [pak].[KindId]"><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></Identifier></ScalarOperator></RangeExpressions></Prefix></SeekKeys></SeekPredicateNew></SeekPredicates></IndexScan></RelOp></NestedLoops></RelOp></ComputeScalar></RelOp><RelOp NodeId="15" PhysicalOp="Clustered Index Seek" LogicalOp="Clustered Index Seek" EstimateRows="1" EstimateIO="0.003125" EstimateCPU="0.0001581" AvgRowSize="15" EstimatedTotalSubtreeCost="0.0058127" TableCardinality="9" Parallel="0" EstimateRebinds="15.3672" EstimateRewinds="0.632768" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OutputList><IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"><DefinedValues><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></DefinedValue></DefinedValues><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Index="[PK_tbl_Dataspace]" Alias="[ds]" IndexKind="Clustered" /><SeekPredicates><SeekPredicateNew><SeekKeys><Prefix ScanType="EQ"><RangeColumns><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceCategory" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceIdentifier" /></RangeColumns><RangeExpressions><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[PartitionId] as [pak].[PartitionId]"><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /></Identifier></ScalarOperator><ScalarOperator ScalarString="[Expr1013]"><Identifier><ColumnReference Column="Expr1013" /></Identifier></ScalarOperator><ScalarOperator ScalarString="{guid'00000000-0000-0000-0000-000000000000'}"><Const ConstValue="{guid'00000000-0000-0000-0000-000000000000'}" /></ScalarOperator></RangeExpressions></Prefix></SeekKeys></SeekPredicateNew></SeekPredicates></IndexScan></RelOp></NestedLoops></RelOp><RelOp NodeId="16" PhysicalOp="Clustered Index Scan" LogicalOp="Clustered Index Scan" EstimateRows="118538" EstimateIO="0.375718" EstimateCPU="0.130549" AvgRowSize="8430" EstimatedTotalSubtreeCost="0.506266" TableCardinality="118538" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /></OutputList><IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"><DefinedValues><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /></DefinedValue></DefinedValues><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Index="[PK_tbl_PropertyValue]" Alias="[pv]" IndexKind="Clustered" /></IndexScan></RelOp></Merge></RelOp></Sort></RelOp></Update></RelOp></QueryPlan></StmtSimple></Statements></Batch></BatchSequence></ShowPlanXML>

 

Thanks in advance and best regards.

TFS 2013 Collection Upgrade stuck on Step 61

$
0
0

Hi all,

I have an incident doing a TFS 2013 Update 4 upgrade to TFS 2015 Update 3.

 

The problem is in the upgrade process are stuck on step 61.

 

I execute one Stored Procedure  EXECprc_QueryWhatsRunning and the result is (please see an attachment)

 

144	35523	35522,145	INSERT	0	IF NOT EXISTS (SELECT * FROM dbo.tbl_PropertyValue_Dataspace)
BEGIN
BEGIN TRAN
/*****************************************************************************
* upd_tbl_PropertyValue_DataspaceInsert
***************************************************	INSERT  tbl_PropertyValue_Dataspace WITH (TABLOCK)
        (PartitionId, DataspaceId, ArtifactId, InternalKindId, Version, PropertyId, IntValue, DatetimeValue, LeadingStringValue,
        TrailingStringValue, DoubleValue, BinaryValue, ChangedDate, ChangedBy)
SELECT  pv.PartitionId,
        ds.DataspaceId,
        pv.ArtifactId,
        pv.InternalKindId,
        pv.Version,
        pv.PropertyId,
        pv.IntValue,
        pv.DatetimeValue,
        pv.LeadingStringValue,
        pv.TrailingStringValue,
        pv.DoubleValue,
        pv.BinaryValue,
        pv.ChangedDate,
        pv.ChangedBy
FROM    dbo.tbl_PropertyValue pv
JOIN    tbl_PropertyArtifactKind pak
ON      pak.PartitionId = pv.PartitionId
        AND pak.InternalKindId = pv.InternalKindId
JOIN    tbl_Dataspace ds
ON      ds.PartitionId = pv.PartitionId
        AND ds.DataspaceCategory = CASE WHEN pak.DatabaseCategory = 'Framework' THEN 'Default' ELSE pak.DatabaseCategory END
        AND ds.DataspaceIdentifier = '00000000-0000-0000-0000-000000000000'
WHERE   NOT (
            -- For on-prem, skip code churn properties w/ Version <= @skipCodeChurnAtOrBefore
            @skipCodeChurnAtOrBefore IS NOT NULL
            AND pv.PartitionId = 1
            AND pak.KindId = '980F2101-6236-48CB-924E-8DA58146585C'
            AND pv.Version <= @skipCodeChurnAtOrBefore
            AND pv.PropertyId IN (@codeChurnDetailsPropertyId, @codeChurnRetryCountPropertyId)
        ) 	RESOURCE_SEMAPHORE	35521851	RESOURCE_SEMAPHORE		1	15	8200	266	0	558512	NULL	1	<ShowPlanXML xmlns="http://schemas.microsoft.com/sqlserver/2004/07/showplan" Version="1.2" Build="11.0.3393.0"><BatchSequence><Batch><Statements><StmtSimple StatementText="** Encrypted Text **" StatementId="1" StatementCompId="391" StatementType="INSERT" RetrievedFromCache="true" StatementSubTreeCost="1828.52" StatementEstRows="100268" StatementOptmLevel="FULL" QueryHash="0x122D0E8138663726" QueryPlanHash="0xFAEB8722469A28ED"><StatementSetOptions QUOTED_IDENTIFIER="true" ARITHABORT="false" CONCAT_NULL_YIELDS_NULL="true" ANSI_NULLS="true" ANSI_PADDING="true" ANSI_WARNINGS="true" NUMERIC_ROUNDABORT="false" /><QueryPlan NonParallelPlanReason="MaxDOPSetToOne" CachedPlanSize="64" CompileTime="28" CompileCPU="20" CompileMemory="1216"><MemoryGrantInfo SerialRequiredMemory="512" SerialDesiredMemory="1037728" /><OptimizerHardwareDependentProperties EstimatedAvailableMemoryGrant="209692" EstimatedPagesCached="18508" EstimatedAvailableDegreeOfParallelism="1" /><RelOp NodeId="0" PhysicalOp="Clustered Index Insert" LogicalOp="Insert" EstimateRows="100268" EstimateIO="697.501" EstimateCPU="0.100268" AvgRowSize="9" EstimatedTotalSubtreeCost="1828.52" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList /><Update DMLRequestSort="1"><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Index="[PK_tbl_PropertyValue_Dataspace]" IndexKind="Clustered" /><SetPredicate><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[PartitionId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DataspaceId] = [Tfs_DefaultCollection].[dbo].[tbl_Dataspace].[DataspaceId] as [ds].[DataspaceId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ArtifactId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ArtifactId] as [pv].[ArtifactId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[InternalKindId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[InternalKindId] as [pv].[InternalKindId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[Version] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[Version] as [pv].[Version],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[PropertyId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[IntValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[IntValue] as [pv].[IntValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DatetimeValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[DatetimeValue] as [pv].[DatetimeValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[LeadingStringValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[LeadingStringValue] as [pv].[LeadingStringValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[TrailingStringValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[TrailingStringValue] as [pv].[TrailingStringValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DoubleValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[DoubleValue] as [pv].[DoubleValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[BinaryValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[BinaryValue] as [pv].[BinaryValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ChangedDate] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ChangedDate] as [pv].[ChangedDate],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ChangedBy] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ChangedBy] as [pv].[ChangedBy]"><ScalarExpressionList><ScalarOperator><MultipleAssign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="PartitionId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DataspaceId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ArtifactId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="InternalKindId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="Version" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="PropertyId" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="IntValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DatetimeValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="LeadingStringValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="TrailingStringValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DoubleValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="BinaryValue" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ChangedDate" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /></Identifier></ScalarOperator></Assign><Assign><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ChangedBy" /><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /></Identifier></ScalarOperator></Assign></MultipleAssign></ScalarOperator></ScalarExpressionList></ScalarOperator></SetPredicate><RelOp NodeId="1" PhysicalOp="Sort" LogicalOp="Sort" EstimateRows="100268" EstimateIO="1129.14" EstimateCPU="0.890918" AvgRowSize="8434" EstimatedTotalSubtreeCost="1130.92" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OutputList><MemoryFractions Input="1" Output="1" /><Sort Distinct="0"><OrderBy><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></OrderByColumn><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></OrderByColumn><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /></OrderByColumn><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OrderByColumn><OrderByColumn Ascending="0"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /></OrderByColumn><OrderByColumn Ascending="1"><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></OrderByColumn></OrderBy><RelOp NodeId="2" PhysicalOp="Merge Join" LogicalOp="Inner Join" EstimateRows="100268" EstimateIO="0" EstimateCPU="0.364855" AvgRowSize="8434" EstimatedTotalSubtreeCost="0.886217" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OutputList><Merge ManyToMany="0"><InnerSideJoinColumns><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></InnerSideJoinColumns><OuterSideJoinColumns><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /></OuterSideJoinColumns><Residual><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_Dataspace].[PartitionId] as [ds].[PartitionId]=[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId] AND [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[InternalKindId] as [pak].[InternalKindId]=[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[InternalKindId] as [pv].[InternalKindId] AND ([@skipCodeChurnAtOrBefore] IS NULL OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId]&lt;&gt;(1) OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[KindId] as [pak].[KindId]&lt;&gt;{guid'980F2101-6236-48CB-924E-8DA58146585C'} OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[Version] as [pv].[Version]&gt;[@skipCodeChurnAtOrBefore] OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId]&lt;&gt;[@codeChurnRetryCountPropertyId] AND [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId]&lt;&gt;[@codeChurnDetailsPropertyId])"><Logical Operation="AND"><ScalarOperator><Compare CompareOp="EQ"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></Identifier></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Compare CompareOp="EQ"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></Identifier></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Logical Operation="OR"><ScalarOperator><Identifier><ColumnReference Column="ConstExpr1010"><ScalarOperator><Compare CompareOp="IS"><ScalarOperator><Identifier><ColumnReference Column="@skipCodeChurnAtOrBefore" /></Identifier></ScalarOperator><ScalarOperator><Const ConstValue="NULL" /></ScalarOperator></Compare></ScalarOperator></ColumnReference></Identifier></ScalarOperator><ScalarOperator><Compare CompareOp="NE"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></Identifier></ScalarOperator><ScalarOperator><Const ConstValue="(1)" /></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Compare CompareOp="NE"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></Identifier></ScalarOperator><ScalarOperator><Const ConstValue="{guid'980F2101-6236-48CB-924E-8DA58146585C'}" /></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Compare CompareOp="GT"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Column="@skipCodeChurnAtOrBefore" /></Identifier></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Logical Operation="AND"><ScalarOperator><Compare CompareOp="NE"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Column="@codeChurnRetryCountPropertyId" /></Identifier></ScalarOperator></Compare></ScalarOperator><ScalarOperator><Compare CompareOp="NE"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></Identifier></ScalarOperator><ScalarOperator><Identifier><ColumnReference Column="@codeChurnDetailsPropertyId" /></Identifier></ScalarOperator></Compare></ScalarOperator></Logical></ScalarOperator></Logical></ScalarOperator></Logical></ScalarOperator></Residual><RelOp NodeId="3" PhysicalOp="Nested Loops" LogicalOp="Inner Join" EstimateRows="14.8039" EstimateIO="0" EstimateCPU="7.106e-005" AvgRowSize="39" EstimatedTotalSubtreeCost="0.0150699" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OutputList><NestedLoops Optimized="0"><OuterReferences><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Column="Expr1013" /></OuterReferences><RelOp NodeId="4" PhysicalOp="Compute Scalar" LogicalOp="Compute Scalar" EstimateRows="17" EstimateIO="0" EstimateCPU="1.7e-006" AvgRowSize="291" EstimatedTotalSubtreeCost="0.00918616" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /><ColumnReference Column="Expr1013" /></OutputList><ComputeScalar><DefinedValues><DefinedValue><ColumnReference Column="Expr1013" /><ScalarOperator ScalarString="CASE WHEN [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[DatabaseCategory] as [pak].[DatabaseCategory]=N'Framework' THEN N'Default' ELSE [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[DatabaseCategory] as [pak].[DatabaseCategory] END"><IF><Condition><ScalarOperator><Compare CompareOp="EQ"><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></Identifier></ScalarOperator><ScalarOperator><Const ConstValue="N'Framework'" /></ScalarOperator></Compare></ScalarOperator></Condition><Then><ScalarOperator><Const ConstValue="N'Default'" /></ScalarOperator></Then><Else><ScalarOperator><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></Identifier></ScalarOperator></Else></IF></ScalarOperator></DefinedValue></DefinedValues><RelOp NodeId="5" PhysicalOp="Nested Loops" LogicalOp="Inner Join" EstimateRows="17" EstimateIO="0" EstimateCPU="7.106e-005" AvgRowSize="53" EstimatedTotalSubtreeCost="0.00918446" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></OutputList><NestedLoops Optimized="0"><OuterReferences><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></OuterReferences><RelOp NodeId="6" PhysicalOp="Index Scan" LogicalOp="Index Scan" EstimateRows="17" EstimateIO="0.003125" EstimateCPU="0.0001757" AvgRowSize="31" EstimatedTotalSubtreeCost="0.0033007" TableCardinality="17" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /></OutputList><IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"><DefinedValues><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /></DefinedValue></DefinedValues><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Index="[IX_tbl_PropertyArtifactKind_InternalKindId]" Alias="[pak]" IndexKind="NonClustered" /></IndexScan></RelOp><RelOp NodeId="8" PhysicalOp="Clustered Index Seek" LogicalOp="Clustered Index Seek" EstimateRows="1" EstimateIO="0.003125" EstimateCPU="0.0001581" AvgRowSize="267" EstimatedTotalSubtreeCost="0.0058127" TableCardinality="17" Parallel="0" EstimateRebinds="16" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></OutputList><IndexScan Lookup="1" Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"><DefinedValues><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /></DefinedValue></DefinedValues><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Index="[PK_tbl_PropertyArtifactKind]" Alias="[pak]" TableReferenceId="-1" IndexKind="Clustered" /><SeekPredicates><SeekPredicateNew><SeekKeys><Prefix ScanType="EQ"><RangeColumns><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></RangeColumns><RangeExpressions><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[PartitionId] as [pak].[PartitionId]"><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /></Identifier></ScalarOperator><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[KindId] as [pak].[KindId]"><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /></Identifier></ScalarOperator></RangeExpressions></Prefix></SeekKeys></SeekPredicateNew></SeekPredicates></IndexScan></RelOp></NestedLoops></RelOp></ComputeScalar></RelOp><RelOp NodeId="15" PhysicalOp="Clustered Index Seek" LogicalOp="Clustered Index Seek" EstimateRows="1" EstimateIO="0.003125" EstimateCPU="0.0001581" AvgRowSize="15" EstimatedTotalSubtreeCost="0.0058127" TableCardinality="9" Parallel="0" EstimateRebinds="15.3672" EstimateRewinds="0.632768" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></OutputList><IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"><DefinedValues><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /></DefinedValue></DefinedValues><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Index="[PK_tbl_Dataspace]" Alias="[ds]" IndexKind="Clustered" /><SeekPredicates><SeekPredicateNew><SeekKeys><Prefix ScanType="EQ"><RangeColumns><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceCategory" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceIdentifier" /></RangeColumns><RangeExpressions><ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[PartitionId] as [pak].[PartitionId]"><Identifier><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /></Identifier></ScalarOperator><ScalarOperator ScalarString="[Expr1013]"><Identifier><ColumnReference Column="Expr1013" /></Identifier></ScalarOperator><ScalarOperator ScalarString="{guid'00000000-0000-0000-0000-000000000000'}"><Const ConstValue="{guid'00000000-0000-0000-0000-000000000000'}" /></ScalarOperator></RangeExpressions></Prefix></SeekKeys></SeekPredicateNew></SeekPredicates></IndexScan></RelOp></NestedLoops></RelOp><RelOp NodeId="16" PhysicalOp="Clustered Index Scan" LogicalOp="Clustered Index Scan" EstimateRows="118538" EstimateIO="0.375718" EstimateCPU="0.130549" AvgRowSize="8430" EstimatedTotalSubtreeCost="0.506266" TableCardinality="118538" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"><OutputList><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /></OutputList><IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"><DefinedValues><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /></DefinedValue><DefinedValue><ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /></DefinedValue></DefinedValues><Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Index="[PK_tbl_PropertyValue]" Alias="[pv]" IndexKind="Clustered" /></IndexScan></RelOp></Merge></RelOp></Sort></RelOp></Update></RelOp></QueryPlan></StmtSimple></Statements></Batch></BatchSequence></ShowPlanXML>

 

Thanks in advance and best regards.


TFS 2013 Collection Upgrade stuck on Step 61

$
0
0
<p><span lang="EN-US">Hi all,</span></p><p></p><p><span lang="EN-US">I have an incident doing a TFS 2013 Update 4 upgrade to TFS 2015 Update 3.</span></p><p><span lang="EN-US">&nbsp;</span></p><p><span lang="EN-US">The problem is in the upgrade process are stuck on step 61. </span></p><p><span lang="EN-US">&nbsp;</span></p><p><span lang="EN-US">I execute one Stored Procedure &nbsp;</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;">EXEC</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;"><span style="color:teal;">prc_QueryWhatsRunning </span></span><span lang="EN-US">and the result is (please see an attachment)</span></p><p>&nbsp;</p><pre class="prettyprint">144 35523 35522,145 INSERT 0 IF NOT EXISTS (SELECT * FROM dbo.tbl_PropertyValue_Dataspace) BEGIN BEGIN TRAN /***************************************************************************** * upd_tbl_PropertyValue_DataspaceInsert *************************************************** INSERT tbl_PropertyValue_Dataspace WITH (TABLOCK) (PartitionId, DataspaceId, ArtifactId, InternalKindId, Version, PropertyId, IntValue, DatetimeValue, LeadingStringValue, TrailingStringValue, DoubleValue, BinaryValue, ChangedDate, ChangedBy) SELECT pv.PartitionId, ds.DataspaceId, pv.ArtifactId, pv.InternalKindId, pv.Version, pv.PropertyId, pv.IntValue, pv.DatetimeValue, pv.LeadingStringValue, pv.TrailingStringValue, pv.DoubleValue, pv.BinaryValue, pv.ChangedDate, pv.ChangedBy FROM dbo.tbl_PropertyValue pv JOIN tbl_PropertyArtifactKind pak ON pak.PartitionId = pv.PartitionId AND pak.InternalKindId = pv.InternalKindId JOIN tbl_Dataspace ds ON ds.PartitionId = pv.PartitionId AND ds.DataspaceCategory = CASE WHEN pak.DatabaseCategory = 'Framework' THEN 'Default' ELSE pak.DatabaseCategory END AND ds.DataspaceIdentifier = '00000000-0000-0000-0000-000000000000' WHERE NOT ( -- For on-prem, skip code churn properties w/ Version &lt;= @skipCodeChurnAtOrBefore @skipCodeChurnAtOrBefore IS NOT NULL AND pv.PartitionId = 1 AND pak.KindId = '980F2101-6236-48CB-924E-8DA58146585C' AND pv.Version &lt;= @skipCodeChurnAtOrBefore AND pv.PropertyId IN (@codeChurnDetailsPropertyId, @codeChurnRetryCountPropertyId) ) RESOURCE_SEMAPHORE 35521851 RESOURCE_SEMAPHORE 1 15 8200 266 0 558512 NULL 1 &lt;ShowPlanXML xmlns="http://schemas.microsoft.com/sqlserver/2004/07/showplan" Version="1.2" Build="11.0.3393.0"&gt;&lt;BatchSequence&gt;&lt;Batch&gt;&lt;Statements&gt;&lt;StmtSimple StatementText="** Encrypted Text **" StatementId="1" StatementCompId="391" StatementType="INSERT" RetrievedFromCache="true" StatementSubTreeCost="1828.52" StatementEstRows="100268" StatementOptmLevel="FULL" QueryHash="0x122D0E8138663726" QueryPlanHash="0xFAEB8722469A28ED"&gt;&lt;StatementSetOptions QUOTED_IDENTIFIER="true" ARITHABORT="false" CONCAT_NULL_YIELDS_NULL="true" ANSI_NULLS="true" ANSI_PADDING="true" ANSI_WARNINGS="true" NUMERIC_ROUNDABORT="false" /&gt;&lt;QueryPlan NonParallelPlanReason="MaxDOPSetToOne" CachedPlanSize="64" CompileTime="28" CompileCPU="20" CompileMemory="1216"&gt;&lt;MemoryGrantInfo SerialRequiredMemory="512" SerialDesiredMemory="1037728" /&gt;&lt;OptimizerHardwareDependentProperties EstimatedAvailableMemoryGrant="209692" EstimatedPagesCached="18508" EstimatedAvailableDegreeOfParallelism="1" /&gt;&lt;RelOp NodeId="0" PhysicalOp="Clustered Index Insert" LogicalOp="Insert" EstimateRows="100268" EstimateIO="697.501" EstimateCPU="0.100268" AvgRowSize="9" EstimatedTotalSubtreeCost="1828.52" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList /&gt;&lt;Update DMLRequestSort="1"&gt;&lt;Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Index="[PK_tbl_PropertyValue_Dataspace]" IndexKind="Clustered" /&gt;&lt;SetPredicate&gt;&lt;ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[PartitionId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DataspaceId] = [Tfs_DefaultCollection].[dbo].[tbl_Dataspace].[DataspaceId] as [ds].[DataspaceId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ArtifactId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ArtifactId] as [pv].[ArtifactId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[InternalKindId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[InternalKindId] as [pv].[InternalKindId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[Version] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[Version] as [pv].[Version],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[PropertyId] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[IntValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[IntValue] as [pv].[IntValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DatetimeValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[DatetimeValue] as [pv].[DatetimeValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[LeadingStringValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[LeadingStringValue] as [pv].[LeadingStringValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[TrailingStringValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[TrailingStringValue] as [pv].[TrailingStringValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[DoubleValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[DoubleValue] as [pv].[DoubleValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[BinaryValue] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[BinaryValue] as [pv].[BinaryValue],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ChangedDate] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ChangedDate] as [pv].[ChangedDate],[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue_Dataspace].[ChangedBy] = [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[ChangedBy] as [pv].[ChangedBy]"&gt;&lt;ScalarExpressionList&gt;&lt;ScalarOperator&gt;&lt;MultipleAssign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="PartitionId" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DataspaceId" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ArtifactId" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="InternalKindId" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="Version" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="PropertyId" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="IntValue" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DatetimeValue" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="LeadingStringValue" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="TrailingStringValue" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="DoubleValue" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="BinaryValue" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ChangedDate" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;Assign&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue_Dataspace]" Column="ChangedBy" /&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Assign&gt;&lt;/MultipleAssign&gt;&lt;/ScalarOperator&gt;&lt;/ScalarExpressionList&gt;&lt;/ScalarOperator&gt;&lt;/SetPredicate&gt;&lt;RelOp NodeId="1" PhysicalOp="Sort" LogicalOp="Sort" EstimateRows="100268" EstimateIO="1129.14" EstimateCPU="0.890918" AvgRowSize="8434" EstimatedTotalSubtreeCost="1130.92" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /&gt;&lt;/OutputList&gt;&lt;MemoryFractions Input="1" Output="1" /&gt;&lt;Sort Distinct="0"&gt;&lt;OrderBy&gt;&lt;OrderByColumn Ascending="1"&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;/OrderByColumn&gt;&lt;OrderByColumn Ascending="1"&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /&gt;&lt;/OrderByColumn&gt;&lt;OrderByColumn Ascending="1"&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /&gt;&lt;/OrderByColumn&gt;&lt;OrderByColumn Ascending="1"&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /&gt;&lt;/OrderByColumn&gt;&lt;OrderByColumn Ascending="0"&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /&gt;&lt;/OrderByColumn&gt;&lt;OrderByColumn Ascending="1"&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /&gt;&lt;/OrderByColumn&gt;&lt;/OrderBy&gt;&lt;RelOp NodeId="2" PhysicalOp="Merge Join" LogicalOp="Inner Join" EstimateRows="100268" EstimateIO="0" EstimateCPU="0.364855" AvgRowSize="8434" EstimatedTotalSubtreeCost="0.886217" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /&gt;&lt;/OutputList&gt;&lt;Merge ManyToMany="0"&gt;&lt;InnerSideJoinColumns&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /&gt;&lt;/InnerSideJoinColumns&gt;&lt;OuterSideJoinColumns&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /&gt;&lt;/OuterSideJoinColumns&gt;&lt;Residual&gt;&lt;ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_Dataspace].[PartitionId] as [ds].[PartitionId]=[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId] AND [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[InternalKindId] as [pak].[InternalKindId]=[Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[InternalKindId] as [pv].[InternalKindId] AND ([@skipCodeChurnAtOrBefore] IS NULL OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PartitionId] as [pv].[PartitionId]&amp;lt;&amp;gt;(1) OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[KindId] as [pak].[KindId]&amp;lt;&amp;gt;{guid'980F2101-6236-48CB-924E-8DA58146585C'} OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[Version] as [pv].[Version]&amp;gt;[@skipCodeChurnAtOrBefore] OR [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId]&amp;lt;&amp;gt;[@codeChurnRetryCountPropertyId] AND [Tfs_DefaultCollection].[dbo].[tbl_PropertyValue].[PropertyId] as [pv].[PropertyId]&amp;lt;&amp;gt;[@codeChurnDetailsPropertyId])"&gt;&lt;Logical Operation="AND"&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="EQ"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="EQ"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Logical Operation="OR"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Column="ConstExpr1010"&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="IS"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Column="@skipCodeChurnAtOrBefore" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Const ConstValue="NULL" /&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;/ColumnReference&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="NE"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Const ConstValue="(1)" /&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="NE"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Const ConstValue="{guid'980F2101-6236-48CB-924E-8DA58146585C'}" /&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="GT"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Column="@skipCodeChurnAtOrBefore" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Logical Operation="AND"&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="NE"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Column="@codeChurnRetryCountPropertyId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="NE"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Column="@codeChurnDetailsPropertyId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;/Logical&gt;&lt;/ScalarOperator&gt;&lt;/Logical&gt;&lt;/ScalarOperator&gt;&lt;/Logical&gt;&lt;/ScalarOperator&gt;&lt;/Residual&gt;&lt;RelOp NodeId="3" PhysicalOp="Nested Loops" LogicalOp="Inner Join" EstimateRows="14.8039" EstimateIO="0" EstimateCPU="7.106e-005" AvgRowSize="39" EstimatedTotalSubtreeCost="0.0150699" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /&gt;&lt;/OutputList&gt;&lt;NestedLoops Optimized="0"&gt;&lt;OuterReferences&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;ColumnReference Column="Expr1013" /&gt;&lt;/OuterReferences&gt;&lt;RelOp NodeId="4" PhysicalOp="Compute Scalar" LogicalOp="Compute Scalar" EstimateRows="17" EstimateIO="0" EstimateCPU="1.7e-006" AvgRowSize="291" EstimatedTotalSubtreeCost="0.00918616" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /&gt;&lt;ColumnReference Column="Expr1013" /&gt;&lt;/OutputList&gt;&lt;ComputeScalar&gt;&lt;DefinedValues&gt;&lt;DefinedValue&gt;&lt;ColumnReference Column="Expr1013" /&gt;&lt;ScalarOperator ScalarString="CASE WHEN [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[DatabaseCategory] as [pak].[DatabaseCategory]=N'Framework' THEN N'Default' ELSE [Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[DatabaseCategory] as [pak].[DatabaseCategory] END"&gt;&lt;IF&gt;&lt;Condition&gt;&lt;ScalarOperator&gt;&lt;Compare CompareOp="EQ"&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator&gt;&lt;Const ConstValue="N'Framework'" /&gt;&lt;/ScalarOperator&gt;&lt;/Compare&gt;&lt;/ScalarOperator&gt;&lt;/Condition&gt;&lt;Then&gt;&lt;ScalarOperator&gt;&lt;Const ConstValue="N'Default'" /&gt;&lt;/ScalarOperator&gt;&lt;/Then&gt;&lt;Else&gt;&lt;ScalarOperator&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/Else&gt;&lt;/IF&gt;&lt;/ScalarOperator&gt;&lt;/DefinedValue&gt;&lt;/DefinedValues&gt;&lt;RelOp NodeId="5" PhysicalOp="Nested Loops" LogicalOp="Inner Join" EstimateRows="17" EstimateIO="0" EstimateCPU="7.106e-005" AvgRowSize="53" EstimatedTotalSubtreeCost="0.00918446" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /&gt;&lt;/OutputList&gt;&lt;NestedLoops Optimized="0"&gt;&lt;OuterReferences&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;/OuterReferences&gt;&lt;RelOp NodeId="6" PhysicalOp="Index Scan" LogicalOp="Index Scan" EstimateRows="17" EstimateIO="0.003125" EstimateCPU="0.0001757" AvgRowSize="31" EstimatedTotalSubtreeCost="0.0033007" TableCardinality="17" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /&gt;&lt;/OutputList&gt;&lt;IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"&gt;&lt;DefinedValues&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="InternalKindId" /&gt;&lt;/DefinedValue&gt;&lt;/DefinedValues&gt;&lt;Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Index="[IX_tbl_PropertyArtifactKind_InternalKindId]" Alias="[pak]" IndexKind="NonClustered" /&gt;&lt;/IndexScan&gt;&lt;/RelOp&gt;&lt;RelOp NodeId="8" PhysicalOp="Clustered Index Seek" LogicalOp="Clustered Index Seek" EstimateRows="1" EstimateIO="0.003125" EstimateCPU="0.0001581" AvgRowSize="267" EstimatedTotalSubtreeCost="0.0058127" TableCardinality="17" Parallel="0" EstimateRebinds="16" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /&gt;&lt;/OutputList&gt;&lt;IndexScan Lookup="1" Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"&gt;&lt;DefinedValues&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="DatabaseCategory" /&gt;&lt;/DefinedValue&gt;&lt;/DefinedValues&gt;&lt;Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Index="[PK_tbl_PropertyArtifactKind]" Alias="[pak]" TableReferenceId="-1" IndexKind="Clustered" /&gt;&lt;SeekPredicates&gt;&lt;SeekPredicateNew&gt;&lt;SeekKeys&gt;&lt;Prefix ScanType="EQ"&gt;&lt;RangeColumns&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;/RangeColumns&gt;&lt;RangeExpressions&gt;&lt;ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[PartitionId] as [pak].[PartitionId]"&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[KindId] as [pak].[KindId]"&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="KindId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;/RangeExpressions&gt;&lt;/Prefix&gt;&lt;/SeekKeys&gt;&lt;/SeekPredicateNew&gt;&lt;/SeekPredicates&gt;&lt;/IndexScan&gt;&lt;/RelOp&gt;&lt;/NestedLoops&gt;&lt;/RelOp&gt;&lt;/ComputeScalar&gt;&lt;/RelOp&gt;&lt;RelOp NodeId="15" PhysicalOp="Clustered Index Seek" LogicalOp="Clustered Index Seek" EstimateRows="1" EstimateIO="0.003125" EstimateCPU="0.0001581" AvgRowSize="15" EstimatedTotalSubtreeCost="0.0058127" TableCardinality="9" Parallel="0" EstimateRebinds="15.3672" EstimateRewinds="0.632768" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /&gt;&lt;/OutputList&gt;&lt;IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"&gt;&lt;DefinedValues&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceId" /&gt;&lt;/DefinedValue&gt;&lt;/DefinedValues&gt;&lt;Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Index="[PK_tbl_Dataspace]" Alias="[ds]" IndexKind="Clustered" /&gt;&lt;SeekPredicates&gt;&lt;SeekPredicateNew&gt;&lt;SeekKeys&gt;&lt;Prefix ScanType="EQ"&gt;&lt;RangeColumns&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceCategory" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_Dataspace]" Alias="[ds]" Column="DataspaceIdentifier" /&gt;&lt;/RangeColumns&gt;&lt;RangeExpressions&gt;&lt;ScalarOperator ScalarString="[Tfs_DefaultCollection].[dbo].[tbl_PropertyArtifactKind].[PartitionId] as [pak].[PartitionId]"&gt;&lt;Identifier&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyArtifactKind]" Alias="[pak]" Column="PartitionId" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator ScalarString="[Expr1013]"&gt;&lt;Identifier&gt;&lt;ColumnReference Column="Expr1013" /&gt;&lt;/Identifier&gt;&lt;/ScalarOperator&gt;&lt;ScalarOperator ScalarString="{guid'00000000-0000-0000-0000-000000000000'}"&gt;&lt;Const ConstValue="{guid'00000000-0000-0000-0000-000000000000'}" /&gt;&lt;/ScalarOperator&gt;&lt;/RangeExpressions&gt;&lt;/Prefix&gt;&lt;/SeekKeys&gt;&lt;/SeekPredicateNew&gt;&lt;/SeekPredicates&gt;&lt;/IndexScan&gt;&lt;/RelOp&gt;&lt;/NestedLoops&gt;&lt;/RelOp&gt;&lt;RelOp NodeId="16" PhysicalOp="Clustered Index Scan" LogicalOp="Clustered Index Scan" EstimateRows="118538" EstimateIO="0.375718" EstimateCPU="0.130549" AvgRowSize="8430" EstimatedTotalSubtreeCost="0.506266" TableCardinality="118538" Parallel="0" EstimateRebinds="0" EstimateRewinds="0" EstimatedExecutionMode="Row"&gt;&lt;OutputList&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /&gt;&lt;/OutputList&gt;&lt;IndexScan Ordered="1" ScanDirection="FORWARD" ForcedIndex="0" ForceSeek="0" ForceScan="0" NoExpandHint="0" Storage="RowStore"&gt;&lt;DefinedValues&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PartitionId" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ArtifactId" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="InternalKindId" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="Version" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="PropertyId" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="IntValue" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DatetimeValue" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="LeadingStringValue" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="TrailingStringValue" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="DoubleValue" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="BinaryValue" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedDate" /&gt;&lt;/DefinedValue&gt;&lt;DefinedValue&gt;&lt;ColumnReference Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Alias="[pv]" Column="ChangedBy" /&gt;&lt;/DefinedValue&gt;&lt;/DefinedValues&gt;&lt;Object Database="[Tfs_DefaultCollection]" Schema="[dbo]" Table="[tbl_PropertyValue]" Index="[PK_tbl_PropertyValue]" Alias="[pv]" IndexKind="Clustered" /&gt;&lt;/IndexScan&gt;&lt;/RelOp&gt;&lt;/Merge&gt;&lt;/RelOp&gt;&lt;/Sort&gt;&lt;/RelOp&gt;&lt;/Update&gt;&lt;/RelOp&gt;&lt;/QueryPlan&gt;&lt;/StmtSimple&gt;&lt;/Statements&gt;&lt;/Batch&gt;&lt;/BatchSequence&gt;&lt;/ShowPlanXML&gt;</pre><br /><p><span lang="EN-US">&nbsp;</span></p><p><span lang="EN-US">Thanks in advance and best regards.</span></p>

SSO and TFS 2017

$
0
0

Hi,

i installed TFS 2017 on Windows Server 2012 R2, with MS SQL 2016 on same server.

How can i enable SSO ? i found old documentation for TFS 2012, but there i have to configure SharePoint. I didn't install Share Point on my new server, because i can't  (It says me always that i haven't .net framework 4.5, but actually 4.6 is installed. When i delete 4.6 - TFS doesn't work)

How can i configure SSO for the TFS 2017 without SP ?

thank you.

TFS 2017 and logon name

$
0
0

Hi

Hi, i installed TFS 2017 with MS SQL 2016 on same server (Windows Server 2012 R2).
When i'm logging in web interface in Chrome i use "user.name + password". It doesn't works for IE, EDGE and Visual Studio. There i have to use "\user.name + password".
Why logon format is different?

if i try to use "domain\user.name + password" it doesn't works. Why?

How can i bring all to the same standard?

Thank you!

Recycling VSTS accounts

$
0
0

Hi All

I'm setting up some IT services to back our company VSTS account. One of these is asking for basic access to VSTS. Many consultants ask for basic access and never use it. Also we obviously have consultants that leave or are assigned to customers for long periods of time (years in some cases).

I'm wondering:

  1. When someone is removed from our AD account does their basic access assignment go with that?
  2. Are there any downsides to recycling visual studio basic licences (eg anyone not using VSTS for past 3 months can lose their licence to another)? For example are preferences preserved? Loss of authorities is fine as we have a very simple authorisation scheme which is reinstated each time a consultant is provided access.

Thanks in advance

Tim

phpunit code coverage in TFS build process

$
0
0

Hi

I have a PHP project (in laravel) - I can run phpunit and generate a Clover coverage report

I need to show the test results and the coverage report in TFS 2015 on-premise - e.g. the following is for a Java Maven project

I don't see a PHPunit build step that will read a Clover coverage report

Is there another way to do this?

Thanks

Unable to connect to TFS from Visual Studio 2010 as of a few days ago

$
0
0
For years, I've used TFS as my source control without much problem.   A couple of days ago, I went to make a change to an open solution and it couldn't connect.    Since then I have not been able to connect to TFS at all from Visual Studio.    I try adding the server (https://mydoman.visualstudio.com/tfs) without success.

How can I add my custom widget to Team Dashboard

$
0
0
Hi everyone! I'm start use MS Team Foundation Server recently and I have some questions. 

A have a task to create a widget from project. I create a test widget according to Microsoft instructions. But when I download it and try to install, I have next log with error:

12/9/2016 14:23:36 - Searching for applicable products...
12/9/2016 14:23:36 - Found installed product - Microsoft Visual Studio Ultimate 2013
12/9/2016 14:23:36 - Found installed product - Microsoft Visual Studio Premium 2013 
12/9/2016 14:23:36 - Found installed product - Microsoft Visual Studio Professional 2013
12/9/2016 14:23:36 - Found installed product - Microsoft Visual Studio 2013 Shell (Integrated)
12/9/2016 14:23:36 - Found installed product - Microsoft Visual Studio Enterprise 2015
12/9/2016 14:23:36 - Found installed product - Microsoft Visual Studio Professional 2015
12/9/2016 14:23:36 - Found installed product - Microsoft Visual Studio Community 2015
12/9/2016 14:23:36 - Found installed product - Microsoft Visual Studio 2015 Shell (Integrated)
12/9/2016 14:23:36 - Found installed product - Global Location
12/9/2016 14:23:36 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
   at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
   at VSIXInstaller.App.InitializeInstall()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

This widget works with Visual Studio Team Services and Team Foundation Server. How we can see installer cannot find a product to install this widget, but I can use TFS in my MS Visual Studio, I have my test project to check work this widget, can work on this projects web portal. Other widgets from marketplace also have this error. If I don't have TFS product on my computer, why can I use it?  How does TFS work on my computer? How can I resolve this problem? And how can I debug my custom widget? I search in internet but not found some helpful. 

Thanks for help.
Alex

Iteration path

$
0
0
How do i restrict users from adding work items to a iteration path ?

TFS 2017 + Sharepoint 2013 + Work Item = Form element cannot contain an element of type Unknown

$
0
0

Hello everyone,

I'm having some problems when i try to add a "New work item" or when i try to "Open a work item" using the sharepoint team site. It doesn't matter the template that i use(Agile, scrum and etc), everytime i get the error 'Form' element cannot contain an element of type 'Unknown' when creating or opening a work item! It's just on the sharepoint team site, if i use the tfs web portal, then everything works, I can create and open work items and the work items created using the tfs web portal appear on the sharepoint team portal as they should, but like i said above i can't open them because of the error.

Image of the problem: http://image.prntscr.com/image/34e6b27d613d4a529cfe2c1c85b0f268.png

The environment:


Machine 1 - TFS 2017 on Windows Server 2012 R2, with MS SQL Server 2014 SP2 + Cumulative update 2(Build 12.0.5522);
Machine 2 - SharePoint 2013 SP1 (with November, 2016, cumulative update) on Windows Server 2012 R2 + TFS 2017 Sharepoint Extension Tools;
Machine 3 - MS SQL Server 2014 SP2 + Cumulative update 2(Build 12.0.5522) on Windows Server 2012 R2 (Used by SharePoint);

/\ this is an upgrade that i did a few days ago from our tfs 2015 update 3 environment, that was also an upgrade from our older tfs 2010 environment, the older tfs 2010 environment didn't have sharepoint! I installed sharepoint after i did the upgrade from TFS 2010 SP1 to TFS 2015 update 3 to test the sharepoint portal because we need to start using it! I did not have any problem with the upgrade from TFS 2010 SP1 to TFS 2015 update 3 and after to TFS 2017(no errors at all during the upgrade)!

Another small problem, is that i don't remember if this issue('Form' element cannot contain an element of type 'Unknown') was happening when i was using the sharepoint team site with TFS 2015 update 3.


Changing database config for TFS 2014

$
0
0

Disclaimer first: I am not a developer or TFS admin, I'm just a sysadmin trying to help out with a TFS-related project.

Our org has an existing instance of TFS 2014 that we want to upgrade to TFS 2017.  Before we do that, we want to run a trial upgrade in a test environment in order to shake out any issues.

Our existing TFS 2014 environment has TFS installed on a Windows 2012 VM that's dedicated to TFS.  The TFS DBs are on another SQL 2012 server that is shared with other applications.

To create a test instance, I duplicated the TFS VM and placed the copy in our test vSphere environment.  I brought it up disconnected from the network, disjoined it from the domain, renamed it, and ran sysprep to generate a new SID.  Then I reconnected it to the network and rejoined it to Active Directory using the new computer name.

I've created copies of all the TFS databases and am trying to repoint the test instance of TFS to these DB copies, but I can't seem to do anything.  When I try to use TfsConfig or the TFS admin console to do anything I get an error about a database connection and can't seem to do anything.  The test TFS VM actually has full connectivity to the SQL Server that's hosting the prod TFS DBs, so I'm not sure why it would complain about DB connectivity.

I've done some Googling, but haven't come up with a solution.  Any suggestions?

Is there an ability to create either a custom Build event/alert or add a field to the existing build alerts?

$
0
0

I was looking into setting up the build alerts on our TFS 2015 system.  When I went to look at the "build fails" and "build complete" events, the field I was looking for "Build name" is not there.

Is there a means to create new, custom events?  Or to add new fields to an existing event?

Thank you.

-Ed

Agent Utilization Reports

$
0
0
Are there any built-in reports in TFS 2015 (on-site) that show the utilization percentage of the TFS Agents?
Viewing all 6687 articles
Browse latest View live


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