<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">granth's blog</title><subtitle type="html">Visual Studio 2010 Team Foundation Server (TFS)</subtitle><id>http://blogs.msdn.com/granth/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/granth/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2009-06-23T20:40:14Z</updated><entry><title>VSTS Pioneer TFS2010 Dogfood Server: Statistics October 2009</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/11/06/vsts-pioneer-tfs2010-dogfood-server-statistics-october-2009.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/11/06/vsts-pioneer-tfs2010-dogfood-server-statistics-october-2009.aspx</id><published>2009-11-06T09:21:36Z</published><updated>2009-11-06T09:21:36Z</updated><content type="html">&lt;p&gt;&lt;i&gt;(&lt;a href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx"&gt;See this summary on the VSTS Pioneer dogfood server&lt;/a&gt; and &lt;a href="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx"&gt;all the other posts&lt;/a&gt;.)&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;As with the last few months, October was another busy month for dogfooding TFS. Since the Pioneer server has been such a success for Work Item Tracking and Source Control, we’ve really ramped up our efforts to dogfood every single feature as much as we can. The benefits of having everything online really lets us make sure our end-to-end integration is working as well as feel the pain before we share it with our customers. The most notable changes this month are:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Each of the different business units within VSTS have setup their own SharePoint MOSS Dashboards with bug trends, etc. &lt;/li&gt;    &lt;li&gt;We’re now using Team Build 2010 with Gated Checkin on our part of the tree (we still have to follow the divisional processes of custom nightly build scripts at this stage) &lt;/li&gt;    &lt;li&gt;We enabled Test Case Management features and are now dogfooding the Test Case Management (TCM) features for our major test passes &lt;/li&gt;    &lt;li&gt;We setup and enabled the Lab Management functionality on our server and we’re starting to dogfood that across the organization as well &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Here’s the latest stats:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Recent Users: 915 &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Version Control&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Version Control Users: 622 &lt;/li&gt;    &lt;li&gt;Files: 11,053,314 &lt;/li&gt;    &lt;li&gt;Compressed File Sizes: 284,480 &lt;/li&gt;    &lt;li&gt;Uncompressed File Sizes: 870,228 &lt;/li&gt;    &lt;li&gt;Checkins: 29,275 &lt;/li&gt;    &lt;li&gt;Shelvesets: 7,249 &lt;/li&gt;    &lt;li&gt;Merge History: 10,897,164 &lt;/li&gt;    &lt;li&gt;Pending Changes: 13,344 &lt;/li&gt;    &lt;li&gt;Workspaces: 1,607 &lt;/li&gt;    &lt;li&gt;Local Copies: 382,464,960 &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Work Item Tracking&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Users with Assigned Work Items: 2,607 &lt;/li&gt;    &lt;li&gt;Total Work Items: 284,813 &lt;/li&gt;    &lt;li&gt;Areas and Iterations: 2,910 &lt;/li&gt;    &lt;li&gt;Work Item Versions: 2,892,664 &lt;/li&gt;    &lt;li&gt;Work Item Attachments: 115,501 &lt;/li&gt;    &lt;li&gt;Work Item Queries: 5,728 &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Commands (last 2 weeks in October)&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Work Item opens:&amp;#160; 154,788 &lt;/li&gt;    &lt;li&gt;Work Item queries: 120,537 &lt;/li&gt;    &lt;li&gt;Work Item updates: 40,242 &lt;/li&gt;    &lt;li&gt;Checkins: 2,630 &lt;/li&gt;    &lt;li&gt;Uploads: 10,440 &lt;/li&gt;    &lt;li&gt;Shelves: 4,553 &lt;/li&gt;    &lt;li&gt;Downloads: 251,032 &lt;/li&gt;    &lt;li&gt;Gets: 41,615 &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;DevDiv TFS Server&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;On top of enabling all these new scenarios on the Pioneer server, we also managed to get the main DevDiv TFS server upgraded from SQL 2005 to SQL 2008. This was the first step to getting the server to TFS2010. I can’t say it was all smooth sailing, but it looks like we’re through the worst of it now (man, what a fortnight…).&amp;#160; The good news is that all of the extra performance optimizations we had to make to cope with our dataset sizes also made it into TFS2010 product.&lt;/p&gt;  &lt;p&gt;Although no install guide will tell you, I highly recommend you put on &lt;a href="http://support.microsoft.com/kb/973602"&gt;SQL 2008 SP1 CU4&lt;/a&gt; if you’re running a large, busy TFS2008 or TFS2010 server – in the processes of testing the upgrade and after the actual upgrade to SQL 2008, we hit these bugs which the SQL team quickly reacted and fixed for us:&amp;#160; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://support.microsoft.com/kb/967178/"&gt;KB967178&lt;/a&gt; - When you restore a SQL Server 2005 backup file in SQL Server 2008, the operation takes much longer than when you restore the same backup file in SQL Server 2005&amp;#160; (fixed in SQL08 SP1 CU1) &lt;/li&gt;    &lt;li&gt;&lt;a href="http://support.microsoft.com/kb/970823/"&gt;KB970823&lt;/a&gt; - CPU cost increases suspiciously when the number of threads working on the same index increases (fixed in &lt;a href="http://support.microsoft.com/kb/971491/"&gt;SQL08 SP1 CU3&lt;/a&gt;) &lt;/li&gt;    &lt;li&gt;&lt;a href="http://support.microsoft.com/kb/970133/"&gt;KB970133&lt;/a&gt; - Backup Log hangs when using compressed backups and the destination drive runs out of disk space. SQL Restart is required (fixed in &lt;a href="http://support.microsoft.com/kb/973602/"&gt;SQL2008 SP1 CU4&lt;/a&gt;)&amp;#160; &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Now, onto the next Pioneer upgrade.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9918469" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="Performance" scheme="http://blogs.msdn.com/granth/archive/tags/Performance/default.aspx" /><category term="VS2010" scheme="http://blogs.msdn.com/granth/archive/tags/VS2010/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /><category term="Pioneer Dogfood" scheme="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx" /></entry><entry><title>TFS2010: Diagnosing Email and SOAP subscription failures</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/10/28/tfs2010-diagnosing-email-and-soap-subscription-failures.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/10/28/tfs2010-diagnosing-email-and-soap-subscription-failures.aspx</id><published>2009-10-29T01:33:04Z</published><updated>2009-10-29T01:33:04Z</updated><content type="html">&lt;p&gt;Sometimes emails alerts such as &amp;quot;Work Item Changed&amp;quot; will fail to send.&amp;#160; Sometimes SOAP (web service) subscriptions will not be called correctly.&lt;/p&gt;  &lt;p&gt;To diagnose these, you can look in the tbl_JobHistory table in the Tfs_Configuration database.&lt;/p&gt;  &lt;p&gt;If you run this SQL command, it will retrieve the last 10 failed notification jobs:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;SELECT TOP 10 DATEADD(hour, -7, StartTime) as StartTimePDT, Result, ResultMessage &lt;/p&gt;    &lt;p&gt;FROM [Tfs_Configuration].[dbo].[tbl_JobHistory]&lt;/p&gt;    &lt;p&gt;WHERE JobId = 'A4804DCF-4BB6-4109-B61C-E59C2E8A9FF7' AND &lt;strong&gt;Result &lt;/strong&gt;&lt;strong&gt;&amp;lt;&amp;gt;&lt;/strong&gt;&lt;strong&gt; 0 &lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;ORDER BY StartTime DESC&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The JobId GUID is the well-known GUID for the “Team Foundation Server Event Processing” job with the namespace: “Microsoft.TeamFoundation.JobService.Extensions.Core.NotificationJobExtension”&lt;/p&gt;  &lt;p&gt;The DATEADD() function converts the date from UTC to local Pacific time.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;ResultMessage:&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;There were errors or warnings during notification delivery.&amp;#160;&amp;#160;&amp;#160; 0/4 emails delivered.&amp;#160; 0/6 soap notifications delivered.&amp;#160;&amp;#160; 1 errors.&amp;#160; 0 warnings.&amp;#160;&amp;#160;&amp;#160; Set /Service/Integration/Settings/NotificationJobLogLevel in the TF registry to 2 to see errors and warnings.&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To get detailed information about why the job failed, you will need to set a flag in the TFS registry. This is different from the windows registry and probably warrants a blog post on it’s own.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Changing NotificationJobLogLevel setting in the TFS registry using PowerShell&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;If you have VS2010 &amp;amp; PowerShell installed on your local machine and you have the appropriate permissions on the server, then you can run these steps from there. Otherwise, you will need to logon to a machine that does, or an AT.&amp;#160; If you logon to the AT, you will need to run PowerShell as an Administrator.&lt;/p&gt;  &lt;p&gt;To change the registry setting, replace the server url &amp;amp; collection name and follow these steps:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open PowerShell &lt;/li&gt;    &lt;li&gt;Run the following commands: &lt;/li&gt; &lt;/ol&gt;  &lt;blockquote&gt;   &lt;p&gt;# Load client OM assembly.      &lt;br /&gt;[Reflection.Assembly]::Load(&amp;quot;Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot;);&lt;/p&gt;    &lt;p&gt;$collectionBaseUrl = &amp;quot;&lt;a href="http://YOURTFSSERVER:8080/tfs/YOURCOLLECTION/"&gt;http://YOURTFSSERVER:8080/tfs/YOURCOLLECTION/&lt;/a&gt;&amp;quot;;&lt;/p&gt;    &lt;p&gt;$tfs = [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]::GetServer($collectionBaseUrl);      &lt;br /&gt;$collectionHive = $tfs.GetService([Microsoft.TeamFoundation.Framework.Client.ITeamFoundationRegistry]);&lt;/p&gt;    &lt;p&gt;# Set the setting in the collection hive.      &lt;br /&gt;$collectionHive.SetValue(&amp;quot;/Service/Integration/Settings/NotificationJobLogLevel&amp;quot;, &amp;quot;&lt;strong&gt;2&lt;/strong&gt;&amp;quot;);&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;It’s a good idea to set this back to “0” once you’re done with it, to avoid filling up the job history logs unnecessarily.&lt;/p&gt;  &lt;p&gt;Once you have set this setting, the next time the job runs and fails, it will log more detailed information including the exception and stack trace. For example:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;There were errors or warnings during notification delivery.&amp;#160;&amp;#160;&amp;#160; 0/0 emails delivered.&amp;#160; 0/3 soap notifications delivered.&amp;#160;&amp;#160; 3 errors.&amp;#160; 0 warnings.&amp;#160;&amp;#160;&amp;#160; -------------------------------&amp;#160; Notification not delivered.&amp;#160;&amp;#160;&amp;#160; Notification: WorkItemChangedEvent (DeliveryType: Soap; Address: &lt;a href="http://eventsserver/EventHandler.svc"&gt;http://eventsserver/EventHandler.svc&lt;/a&gt;)&amp;#160;&amp;#160;&amp;#160; Exception: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: Team Foundation services are not available from server &lt;a href="http://eventsserver/EventHandler.svc"&gt;http://eventsserver/EventHandler.svc&lt;/a&gt;.&amp;#160; Technical information (for administrator):&amp;#160;&amp;#160;&amp;#160; &lt;strong&gt;HTTP code 415: Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'.&lt;/strong&gt; ---&amp;gt; System.Net.WebException: The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'..&amp;#160;&amp;#160;&amp;#160;&amp;#160; at System.Net.HttpWebRequest.GetResponse()&amp;#160;&amp;#160;&amp;#160;&amp;#160; at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.AsyncWebRequest.ExecRequest(Object obj)&amp;#160;&amp;#160;&amp;#160;&amp;#160; --- End of inner exception stack trace ---&amp;#160;&amp;#160;&amp;#160;&amp;#160; at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ProcessHttpResponse(HttpWebResponse response, Stream responseStream, WebException webException, XmlReader&amp;amp; xmlResponseReader)&amp;#160;&amp;#160;&amp;#160;&amp;#160; at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ExecWebServiceRequest(HttpWebRequest request, XmlWriter requestXml, String methodName, HttpWebResponse&amp;amp; response)&amp;#160;&amp;#160;&amp;#160;&amp;#160; at Microsoft.TeamFoundation.JobService.Extensions.Core.TeamFoundationNotificationClient.Notify(String eventXml, String tfsIdentityXml, Subscription subscription)&amp;#160;&amp;#160;&amp;#160;&amp;#160; at Microsoft.TeamFoundation.JobService.Extensions.Core.NotificationJobExtension.SendSoapNotification(TeamFoundationRequestContext requestContext, TeamFoundationNotification notification, TeamFoundationIdentityService identityService)&amp;#160; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This &lt;a href="http://social.msdn.microsoft.com/forums/en-US/wcf/thread/f29cd9c8-3c89-43d2-92ae-d2a270ab86b9/"&gt;particular error message&lt;/a&gt; indicates that the client was expecting a SOAP 1.1 message, and the server sent it a SOAP 1.2 message.&lt;/p&gt;  &lt;p&gt;If your email alerts are failing to send, then you’ll get an SMTP error back that shows you where to start looking.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9914455" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="VS2010" scheme="http://blogs.msdn.com/granth/archive/tags/VS2010/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /></entry><entry><title>TFS2010: SQL Queries for TFS Statistics</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/10/23/tfs2010-sql-queries-for-tfs-statistics.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/10/23/tfs2010-sql-queries-for-tfs-statistics.aspx</id><published>2009-10-23T08:27:09Z</published><updated>2009-10-23T08:27:09Z</updated><content type="html">&lt;p&gt;&lt;a href="http://blogs.msdn.com/bharry/archive/tags/TFS+Dogfood+statistics/default.aspx"&gt;Brian has been posting TFS statistics&lt;/a&gt; from the Developer Division dogfood TFS server for many years.&amp;#160; I’ve updated &lt;a href="http://blogs.msdn.com/bharry/archive/2007/12/02/tfs-statistics-update.aspx"&gt;the queries from TFS2008&lt;/a&gt; to work with Team Foundation Server 2010 Beta 2. Here are the statistics for the &lt;a href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx"&gt;TFS2010 Beta 2 server&lt;/a&gt; that we have been using internally since August 2009.&amp;#160; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-statistics-august-2009.aspx"&gt;VSTS Pioneer TFS2010 Dogfood Server: Statistics August 2009&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.msdn.com/granth/archive/2009/10/19/vsts-pioneer-tfs2010-dogfood-server-statistics-september-2009.aspx"&gt;VSTS Pioneer TFS2010 Dogfood Server: Statistics September 2009&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx"&gt;Other Pioneer TFS2010 blog posts&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;The queries&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;With the default permissions in SQL, mere mortals will not have enough access to run these queries. In fact, only TFS administrators should be able to even connect to SQL at all.&amp;#160; To run these queries, you essentially need db_datareader rights on the Tfs_Configration and any Tfs_Collection* databases that you want statistics on.&lt;/p&gt;  &lt;p&gt;In general, you do NOT want to query the TFS operational databases. The only supported API is the Microsoft.TeamFoundation.* Object Model. If you build applications that read the SQL store directly, you are likely to impact TFS performance and it is likely to break in the next version if the database schema changes.&amp;#160; &lt;strong&gt;You’ve been warned!&amp;#160; &lt;/strong&gt;(Running these queries are OK periodically though :)&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;-- Change this to the name of your collection DB. You’ll need to run these queries for each of your collection DBs.     &lt;br /&gt;USE Tfs_DefaultCollection       &lt;br /&gt;GO &lt;/p&gt;    &lt;p&gt;-- Recent Users      &lt;br /&gt;select count(distinct IdentityName) as [Recent Users] from tbl_Command with (nolock) &lt;/p&gt;    &lt;p&gt;-- Users with Assigned Work Items      &lt;br /&gt;select count(distinct [System.AssignedTo]) AS [Users with Assigned Work Items] from WorkItemsAreUsed with (nolock) &lt;/p&gt;    &lt;p&gt;-- Version Control Users      &lt;br /&gt;select COUNT(*) AS [Version Control Users] from [Tfs_Configuration].[dbo].tbl_security_identity_cache as ic JOIN tbl_Identity as i ON i.TeamFoundationId=ic.tf_id where ic.is_group = 0 &lt;/p&gt;    &lt;p&gt;-- Total Work Items      &lt;br /&gt;select count(*) AS [Total Work Items] from WorkItemsAreUsed with (nolock) &lt;/p&gt;    &lt;p&gt;-- Areas and Iterations      &lt;br /&gt;select count(*) AS [Areas and Iterations] from tbl_nodes with (nolock) &lt;/p&gt;    &lt;p&gt;-- Work Item Versions      &lt;br /&gt;select count(*) AS [Work Item Versions] from (select [System.Id] from WorkItemsAreUsed with (nolock) union all select [System.Id] from WorkItemsWereUsed with (nolock)) x       &lt;br /&gt;-- Work Item Attachments       &lt;br /&gt;select count(*) AS [Work Item Attachments] from WorkItemFiles with (nolock) where FldID = 50       &lt;br /&gt;-- Work Item Queries       &lt;br /&gt;select count(*) AS [Work Item Queries] from QueryItems with (nolock) &lt;/p&gt;    &lt;p&gt;-- Files      &lt;br /&gt;select count(*) as [Files] from tbl_VersionedItem vi with (nolock) join tbl_Version v with (nolock) on v.ItemId = vi.ItemId where VersionTo = 2147483647 &lt;/p&gt;    &lt;p&gt;-- Compressed File Sizes      &lt;br /&gt;select (sum(convert(bigint,OffsetTo - OffsetFrom + 1)) / (1024 * 1024)) AS [Compressed File Sizes] from tbl_Content with (nolock) &lt;/p&gt;    &lt;p&gt;-- Uncompressed File Sizes      &lt;br /&gt;select (sum(FileLength) / (1024 * 1024)) AS [Uncompressed File Sizes] from tbl_File with (nolock) &lt;/p&gt;    &lt;p&gt;-- Checkins      &lt;br /&gt;select max(ChangeSetId) AS [Checkins] from tbl_ChangeSet with (nolock) &lt;/p&gt;    &lt;p&gt;-- Shelvesets      &lt;br /&gt;select COUNT(*) AS [Shelvesets] from tbl_Workspace with (nolock) where type='1' &lt;/p&gt;    &lt;p&gt;-- Merge History      &lt;br /&gt;select SUM(st.row_count) AS [Merge History] from sys.dm_db_partition_stats st WHERE object_name(object_id) = 'tbl_MergeHistory' AND (index_id &amp;lt; 2) &lt;/p&gt;    &lt;p&gt;-- Pending Changes      &lt;br /&gt;select count(*) AS [Pending Changes] from tbl_PendingChange pc with (nolock) join tbl_Workspace w with (nolock) on pc.WorkspaceId = w.WorkspaceId where w.Type = 0       &lt;br /&gt;-- Workspaces       &lt;br /&gt;select COUNT(*) AS [Workspaces] from tbl_Workspace with (nolock) where type='0'       &lt;br /&gt;-- Local Copies       &lt;br /&gt;select SUM(st.row_count) AS [Local Copies] from sys.dm_db_partition_stats st WHERE object_name(object_id) = 'tbl_LocalVersion' AND (index_id &amp;lt; 2) &lt;/p&gt;    &lt;p&gt;-- Command Counts      &lt;br /&gt;select Command, count(*) as [Execution Count] from tbl_Command with (nolock) WHERE Command IN ('QueryWorkitems', 'Update', 'GetWorkItem', 'Get', 'VCDownloadHandler', 'Checkin', 'Upload', 'Shelve') GROUP BY Command, Application ORDER BY [Application],[Command] &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;These are the core statistics to get you started. I need to add in some more on Team Build, Web Access, Excel &amp;amp; Project usage, etc. Let me know what other statistics you think would be useful.&lt;/p&gt;  &lt;p&gt;If you’d like to share your statistics with me and/or the TFS team, send me a link or &lt;a href="http://blogs.msdn.com/granth/contact.aspx"&gt;email them privately&lt;/a&gt;.&amp;#160; We’d love to know what sort of usage patterns people are using the product in.&lt;/p&gt;  &lt;p&gt;I’m also working on a plugin for the forthcoming TFS Best Practices Analyzer that will allow you to run these queries on a schedule and publish your own TFS statistics. By running it on a schedule, you will be able to track growth in size and usage over time and help you do some capacity planning. Stay tuned for that.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9911938" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="Performance" scheme="http://blogs.msdn.com/granth/archive/tags/Performance/default.aspx" /><category term="Pioneer Dogfood" scheme="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx" /></entry><entry><title>VSTS Pioneer TFS2010 Dogfood Server: Upgrading</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/10/19/vsts-pioneer-tfs2010-dogfood-server-upgrading.aspx" /><link rel="enclosure" type="application/octet-stream" length="18156" href="http://blogs.msdn.com/granth/attachment/9908975.ashx" /><id>http://blogs.msdn.com/granth/archive/2009/10/19/vsts-pioneer-tfs2010-dogfood-server-upgrading.aspx</id><published>2009-10-19T08:58:00Z</published><updated>2009-10-19T08:58:00Z</updated><content type="html">&lt;p&gt;&lt;i&gt;(&lt;a href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx"&gt;See this summary on the VSTS Pioneer dogfood server&lt;/a&gt; and &lt;a href="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx"&gt;all the other posts&lt;/a&gt;.)&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;One of the major goals of the Pioneer Team Foundation Server is to upgrade it to early builds so that we can get some “bake time” with them and feel confident with what we’re releasing to customers.&amp;#160; Since we spun up the server, we’ve done two successful upgrades and we’re already planning the next one:&amp;#160; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;July 1st – Initial installation of Beta 1 build &lt;/li&gt;    &lt;li&gt;August 29 – Upgrade to 8/22 build from the VSTS branch &lt;/li&gt;    &lt;li&gt;September 17 – Upgrade to 9/17 build from the Beta 2 branch&amp;#160; (yes, the build dropped at 5PM and we used it to upgrade at 6PM) &lt;/li&gt;    &lt;li&gt;November – Upgrade to a post-Beta2 build &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;The process of testing the upgrades on a copy of our database is just as important as running the upgrade itself. With our interesting &lt;a href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-hardware-topology.aspx"&gt;dogfood topology&lt;/a&gt; of a dedicated SQL server, NLB/multiple application tiers, a dedicated MOSS server, virtual machines and use of virtual DNS names, we find some interesting bugs that we’re able to fix before things are locked down for shipping.&lt;/p&gt;  &lt;p&gt;There’s no whitepaper on “How to Dogfood” at Microsoft, so our process for deploying perpetual upgrades is something that just kind of happened. Here’s basically what we do:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerUpgrading_6912/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Dogfood Upgrade process" border="0" alt="Dogfood Upgrade process" src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerUpgrading_6912/image_thumb_1.png" width="640" height="255" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Depending on where we are in the cycle and the amount of churn in the code base, we might add another iteration or skip one. What’s most interesting about this process, is that it’s driven by the end date.&amp;#160; Based on the product schedule, we know when our windows of opportunity are for upgrading and we work back from then.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Tips for upgrading&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Here are some tips to consider when planning your own upgrades:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Hardware&lt;/strong&gt; – Get your production &amp;amp; pre-production servers in place early. Getting new hardware or re-configuring existing hardware usually has a long lead time.&amp;#160; Make sure that you’ve also got enough storage space. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Start fresh&lt;/strong&gt; – If at all possible, give yourself the best chance at success by starting with a fresh box. Sure, plenty of products support in-place upgrades &amp;amp; clean uninstalls – but in my experience, flattening the box and starting fresh lays a good foundation for the future. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Backups &lt;/strong&gt;– Organize a copy of your production backups that you can test the upgrade with. Not only does it give you peace of mind that your backups work, it also helps you line up the DBA’s for when it’s time to do the real upgrade. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Start with the latest OS &lt;/strong&gt;– If you start with Windows 2008 R2 now, it’s one less OS upgrade (and downtime) you’ll have to do in the future. It also means you’ll be on 64-bit, which is a very good thing. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Virtualization&lt;/strong&gt; – We run our 3x Application Tiers as virtual machines with no problems whatsoever. This is great for when we’re installing pre-beta copies of the .NET framework that don’t have clean uninstalls yet.&amp;#160; In our last upgrade we just turned off the old application tiers and spun up three fresh ones.&amp;#160; You can treat AT’s as throwaways in a TFS2010 NLB topology, since there is no state stored on them. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Dry-Runs&lt;/strong&gt; – Run through your plan and make sure everything is going to work. Review it with others and get their feedback. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Have a test plan&lt;/strong&gt; – Once you’ve done the upgrade, you need to be sure that everything is back online and working as expected. Checkin, Checkout, Open work item, Save work item, Web Access, Sharepoint, Reports, Cube, Alerts, Monitoring, Builds, etc. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Do pre-requisites ahead of time&lt;/strong&gt; – For example, to install SQL2008 you need to have .NET3.5 and Windows Installer 4.5 both installed first and both of these require a reboot.&amp;#160; If you plan to do one on the first weekend and the other on the second weekend, it means that you don’t waste time during your more important SQL upgrade waiting for reboots. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Do one thing at a time – &lt;/strong&gt;This is an extension of the last point. Let’s say you’re moving from a single-server TFS2008 SP1 on SQL2005 and Windows 2003 to a dual-server TFS2010 on SQL2008 SP1 and Windows 2008 R2.&amp;#160; If it were me, I’d take it in steps: upgrade SQL, make sure everything still works, move to dual-server, check again, upgrade to TFS2010.&amp;#160; The more steps you try and bundle together, the higher your risk of failure. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Upgrade logistics&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I’ve been involved with at least 5 major upgrades this year and here are some things I’ve learnt from running them:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Book a conference room &lt;/strong&gt;      &lt;ul&gt;       &lt;li&gt;This is the single most valuable thing you can do. Try and get anybody who is actually doing any steps in the upgrade (DBA&amp;lt; IT, Helpdesk, etc) to come to the room. &lt;/li&gt;        &lt;li&gt;Have a spare computer or project your own desktop on the screen. This is useful for synchronizing with others in the room, running ‘ping –t’ when a server reboots and doing “group debugging” sessions when problems happen. &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Setup a “party line” conference call&lt;/strong&gt;. Invite anybody who wants to “listen in” to join. Invite your manager. &lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;It’s also useful for anybody who you might need help from to have these details. If things go south, you don’t waste time trying to setup a conference call – it’s already there. &lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;&lt;strong&gt;Setup a live meeting / desktop sharing session&lt;/strong&gt;. Invite anybody who wants to be a “fly on the wall” to join.       &lt;ul&gt;       &lt;li&gt;Sure, you can log a bug that says “when I clicked on X on screen Y, setup blew up” and people might believe you. But if you’re sharing your desktop and other people see it happen, then you have some people to back you up. &lt;/li&gt;        &lt;li&gt;(I’ve been meaning to do a screen recording of our upgrades, but various technology problems have prevented it each time – I think it would be useful for reviewing and improving the process for next time) &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Setup an “on call / escalation” list&lt;/strong&gt;. Find out who you need to call if you have problems with one of your dependent systems. The last thing you want to be doing is sitting on hold to a L1 helpdesk if your server doesn’t reboot cleanly or something. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Send at least 3 notifications&lt;/strong&gt; to users of the downtime       &lt;ul&gt;       &lt;li&gt;1st Notice – Give as much notice as possible so people can plan milestones around the date.&amp;#160; Even if it’s not set in stone yet, people would rather know about it and have it cancelled than to find out at the last minute. &lt;/li&gt;        &lt;li&gt;2nd Notice – 7 days or on the Monday before a weekend upgrade is good for this. &lt;/li&gt;        &lt;li&gt;3rd Notice – On the day of the upgrade (or 24 hours before if it’s a weekend), send another one. &lt;/li&gt;        &lt;li&gt;Guidelines: Make sure you describe what the impact to users is, any actions they need to take and where they can go to get future status updates and support. &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Provide regular status &lt;/strong&gt;to stakeholders.&amp;#160; Start an email thread and trickle through progress as it happens.&amp;#160; By keeping them informed, you buy their trust and their support when things don’t go as planned. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Planning your own upgrade&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Brian Keller has a great post on how to &lt;a href="http://blogs.msdn.com/briankel/archive/2009/10/02/get-ready-to-go-live-with-team-foundation-server-2010-beta-2.aspx "&gt;Get ready to “go live” with Team Foundation Server 2010 beta 2!&lt;/a&gt; He includes two useful documents:&lt;/p&gt;  &lt;li&gt;&lt;a href="http://cid-8c96cc4d0756cacb.skydrive.live.com/self.aspx/Public/Blog%20Attachments/Team%20Foundation%20Server%202010%20Beta%202%20Rollout.pptx"&gt;Overview presentation&lt;/a&gt; (.PPTX) &lt;/li&gt;  &lt;li&gt;&lt;a href="http://cid-8c96cc4d0756cacb.skydrive.live.com/self.aspx/Public/Blog%20Attachments/Team%20Foundation%20Server%202010%20Beta%202%20Rollout%20Guide.docx"&gt;Detailed checklist&lt;/a&gt; (.DOCX)     &lt;p&gt;I’m also going to share with you a copy of the generic deployment plan template that I’ve been using for the Pioneer upgrades.&lt;/p&gt; &lt;/li&gt;  &lt;li&gt;   &lt;p&gt;&lt;a href="http://blogs.msdn.com/granth/attachment/9908975.ashx"&gt;Deployment Plan Template&lt;/a&gt;(.XLSX)&lt;/p&gt;    &lt;p&gt;&lt;a href="http://blogs.msdn.com/granth/attachment/9908975.ashx"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Deployment Plan Template screenshot" border="0" alt="Deployment Plan Template screenshot" src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerUpgrading_6912/image_5.png" width="524" height="380" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;Planning, testing and upgrading to these new releases has been a fun experience and it’s a bonus when everything goes smoothly. It’s great to see our experiences influence the product and make it the best release yet.&lt;/p&gt; &lt;/li&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9908975" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="VSTS Planning &amp;amp; Tracking" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Planning+_2600_amp_3B00_+Tracking/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="VS2010" scheme="http://blogs.msdn.com/granth/archive/tags/VS2010/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /><category term="Pioneer Dogfood" scheme="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx" /></entry><entry><title>VSTS Pioneer TFS2010 Dogfood Server: Statistics September 2009</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/10/19/vsts-pioneer-tfs2010-dogfood-server-statistics-september-2009.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/10/19/vsts-pioneer-tfs2010-dogfood-server-statistics-september-2009.aspx</id><published>2009-10-19T07:13:18Z</published><updated>2009-10-19T07:13:18Z</updated><content type="html">&lt;p&gt;&lt;i&gt;(&lt;a href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx"&gt;See this summary on the VSTS Pioneer dogfood server&lt;/a&gt; and &lt;a href="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx"&gt;all the other posts&lt;/a&gt;.)&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;September was a busy month for dogfooding TFS – all of the VSTS team were completely moved across and on 9/17 we upgraded to an almost final TFS2010 Beta 2 build. Here are the numbers from the end of September:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Recent Users: 887 &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Version Control&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Files &amp;amp; Folders: 10,722,118 &lt;/li&gt;    &lt;li&gt;Compressed File Sizes (MB): 263,350 &lt;/li&gt;    &lt;li&gt;Uncompressed File Sizes (MB): 773,731 &lt;/li&gt;    &lt;li&gt;Checkins: 23,369 &lt;/li&gt;    &lt;li&gt;Pending Changes: 55,697 &lt;/li&gt;    &lt;li&gt;Local Copies: 303,331,190 &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Work Item Tracking&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;It looks like I don’t have the work item tracking stats for September – I’ll have them next month.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Commands (last 2 weeks in September)&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Work Item opens:&amp;#160; 113,128 &lt;/li&gt;    &lt;li&gt;Work Item queries: 101,203 &lt;/li&gt;    &lt;li&gt;Work Item updates: 23,653 &lt;/li&gt;    &lt;li&gt;Checkins: 1,855 &lt;/li&gt;    &lt;li&gt;Uploads: 6.622 &lt;/li&gt;    &lt;li&gt;Shelves: 2,402 &lt;/li&gt;    &lt;li&gt;Downloads: 216,452 &lt;/li&gt;    &lt;li&gt;Gets: 30,201 &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Table sizes&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;One of the interesting metrics that I’m also tracking is how our tables and indexes are growing on the disks. Here’s the top 10 for this month:&lt;/p&gt;  &lt;table border="1" cellspacing="0" cellpadding="0" width="450"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td width="133"&gt;&lt;strong&gt;Table&lt;/strong&gt;&lt;/td&gt;        &lt;td width="80"&gt;&lt;strong&gt;Rows&lt;/strong&gt;&lt;/td&gt;        &lt;td width="70"&gt;&lt;strong&gt;Reserved (MB)&lt;/strong&gt;&lt;/td&gt;        &lt;td width="57"&gt;&lt;strong&gt;Data (MB)&lt;/strong&gt;&lt;/td&gt;        &lt;td width="51"&gt;&lt;strong&gt;Index (MB)&lt;/strong&gt;&lt;/td&gt;        &lt;td width="57"&gt;&lt;strong&gt;Unused (MB)&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;tbl_Content&lt;/p&gt;       &lt;/td&gt;        &lt;td width="80"&gt;         &lt;p align="right"&gt;5,915,547&lt;/p&gt;       &lt;/td&gt;        &lt;td width="70"&gt;         &lt;p align="right"&gt;277,260&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;275,129&lt;/p&gt;       &lt;/td&gt;        &lt;td width="51"&gt;         &lt;p align="right"&gt;4&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;2,127&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;tbl_LocalVersion&lt;/p&gt;       &lt;/td&gt;        &lt;td width="80"&gt;         &lt;p align="right"&gt;303,331,190&lt;/p&gt;       &lt;/td&gt;        &lt;td width="70"&gt;         &lt;p align="right"&gt;81,562&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;44,789&lt;/p&gt;       &lt;/td&gt;        &lt;td width="51"&gt;         &lt;p align="right"&gt;36,574&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;199&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;Attachments&lt;/p&gt;       &lt;/td&gt;        &lt;td width="80"&gt;         &lt;p align="right"&gt;63,783&lt;/p&gt;       &lt;/td&gt;        &lt;td width="70"&gt;         &lt;p align="right"&gt;11,928&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;11,908&lt;/p&gt;       &lt;/td&gt;        &lt;td width="51"&gt;         &lt;p align="right"&gt;13&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;7&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;tbl_Version&lt;/p&gt;       &lt;/td&gt;        &lt;td width="80"&gt;         &lt;p align="right"&gt;12,129,564&lt;/p&gt;       &lt;/td&gt;        &lt;td width="70"&gt;         &lt;p align="right"&gt;3,418&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;1,031&lt;/p&gt;       &lt;/td&gt;        &lt;td width="51"&gt;         &lt;p align="right"&gt;2,369&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;17&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;WorkItemLongTexts&lt;/p&gt;       &lt;/td&gt;        &lt;td width="80"&gt;         &lt;p align="right"&gt;2,728,618&lt;/p&gt;       &lt;/td&gt;        &lt;td width="70"&gt;         &lt;p align="right"&gt;3,314&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;2,533&lt;/p&gt;       &lt;/td&gt;        &lt;td width="51"&gt;         &lt;p align="right"&gt;777&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;5&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;tbl_VersionedItem&lt;/p&gt;       &lt;/td&gt;        &lt;td width="80"&gt;         &lt;p align="right"&gt;15,754,176&lt;/p&gt;       &lt;/td&gt;        &lt;td width="70"&gt;         &lt;p align="right"&gt;2,983&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;1,598&lt;/p&gt;       &lt;/td&gt;        &lt;td width="51"&gt;         &lt;p align="right"&gt;1,382&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;3&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;WorkItemsWere&lt;/p&gt;       &lt;/td&gt;        &lt;td width="80"&gt;         &lt;p align="right"&gt;1,239,831&lt;/p&gt;       &lt;/td&gt;        &lt;td width="70"&gt;         &lt;p align="right"&gt;2,482&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;1,617&lt;/p&gt;       &lt;/td&gt;        &lt;td width="51"&gt;         &lt;p align="right"&gt;863&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;2&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;tbl_PropertyValue&lt;/p&gt;       &lt;/td&gt;        &lt;td width="80"&gt;         &lt;p align="right"&gt;33,293,914&lt;/p&gt;       &lt;/td&gt;        &lt;td width="70"&gt;         &lt;p align="right"&gt;1,320&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;523&lt;/p&gt;       &lt;/td&gt;        &lt;td width="51"&gt;         &lt;p align="right"&gt;793&lt;/p&gt;       &lt;/td&gt;        &lt;td width="57"&gt;         &lt;p align="right"&gt;4&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td width="133"&gt;         &lt;p align="left"&gt;tbl_File&lt;/p&gt;       &lt;/td&gt;        &lt;td width="81"&gt;         &lt;p align="right"&gt;5,717,981&lt;/p&gt;       &lt;/td&gt;        &lt;td width="71"&gt;         &lt;p align="right"&gt;722&lt;/p&gt;       &lt;/td&gt;        &lt;td width="61"&gt;         &lt;p align="right"&gt;442&lt;/p&gt;       &lt;/td&gt;        &lt;td width="60"&gt;         &lt;p align="right"&gt;266&lt;/p&gt;       &lt;/td&gt;        &lt;td width="76"&gt;         &lt;p align="right"&gt;14&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9908942" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="VSTS Planning &amp;amp; Tracking" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Planning+_2600_amp_3B00_+Tracking/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="VS2010" scheme="http://blogs.msdn.com/granth/archive/tags/VS2010/default.aspx" /><category term="VSTS Version Control" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Version+Control/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /><category term="Pioneer Dogfood" scheme="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx" /></entry><entry><title>TFS2010: Installing pre-requisites from the command line</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/10/18/tfs2010-installing-pre-requisites-from-the-command-line.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/10/18/tfs2010-installing-pre-requisites-from-the-command-line.aspx</id><published>2009-10-19T06:31:35Z</published><updated>2009-10-19T06:31:35Z</updated><content type="html">&lt;p&gt;On the Team Foundation Server team, there is a new build of the server every night that comes out of our build lab. These vary in quality throughout the development cycle and the QA teams look at them and rate them as “Self Test”, “Self Test (with workarounds)”, or “Self Toast”.&amp;#160; The QA &amp;amp; dev guys have lots of fancy automation for deploying nightly builds and testing them out, but I like to stay away from that stuff and use the builds as if I were a real customer. Once a build is declared “Self Test”, I’ll grab a copy and spin it up in a VM to see what’s changed.&lt;/p&gt;  &lt;p&gt;The two preparation things I’ve done that have really sped up my installation turnaround times are:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Create a sysprep’d Windows Server 2008 R2 VHD&lt;/li&gt;    &lt;li&gt;Create a SQL2008 SP1 slipstreamed installation point&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Once I had those in place, I then just used these two long command lines below to install SQL &amp;amp; IIS. Of course, none of this is necessary for a “TFS Basic” install, since the installer will drop down IIS &amp;amp; SQL Express for you.&amp;#160; See &lt;a href="http://blogs.msdn.com/bharry/archive/2009/10/01/tfs-2010-for-sourcesafe-users.aspx"&gt;Brian’s blog on TFS 2010 for SourceSafe Users for more details&lt;/a&gt; on that.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Creating a sysprep’d Win2008 R2 VHD&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Creating a sysprep’d VM is easy. Create a new VM and install a fresh copy of Windows 2008 R2. If you have a domain, join it to the domain and add yourself to the local administrators group (this will be retained after you sysprep &amp;amp; rejoin to the domain again).&amp;#160; I don’t usually add the IIS role at this point, since I use these VHD’s for other things. Once you’re happy with it, run the following command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;C:\Windows\System32\Sysprep\Sysprep.exe /oobe /generalize /shutdown&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Then take a copy of the VHD and name it something like ‘Win2008R2Sysprepped.vhd’.&amp;#160; Whenever you need a fresh machine, just copy this VHD to a new file and away you go.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Creating a SQL2008 SP1 slipstreamed installation point&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Follow the instructions for &lt;a href="http://blogs.msdn.com/petersad/archive/2009/02/25/sql-server-2008-creating-a-merged-slisptream-drop.aspx"&gt;creating a slipstreamed drop on the SQL Server Setup team’s blog&lt;/a&gt;. Two things to note when doing this:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Paths matter – it’s best to pick a folder name and stick with it whenever you use it. e.g. C:\SQL2008SP1\&lt;/li&gt;    &lt;li&gt;You DO have to download the ia64 &amp;amp; x86 SP1 packages &amp;amp; slipstream them as well, otherwise your setup.exe will fail&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Once you’ve created the installation point, save it away somewhere – it’s really useful and it saves so much time by not having to do an RTM install followed by a SP1 install.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Installing TFS pre-requisites from the command line&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Boot into your fresh 2008 R2 VM&lt;/li&gt;    &lt;li&gt;Give it a new name, join it to the domain, apply any updates, reboot, etc&lt;/li&gt;    &lt;li&gt;Install SQL2008 SP1 from your installation point:&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;Open a command prompt as administrator&lt;/li&gt;      &lt;li&gt;Type: pushd &lt;a href="file://\\fileserver\SQL2008SP1"&gt;\\fileserver\SQL2008SP1&lt;/a&gt;&lt;/li&gt;      &lt;li&gt;Type the following command:&lt;/li&gt;   &lt;/ul&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;Setup.exe /q /ACTION=Install /FEATURES=SQL,FullText,AS,RS,Tools /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT=&amp;quot;NT Authority\Network Service&amp;quot; /RSSVCACCOUNT=&amp;quot;NT Authority\Network Service&amp;quot; /ASSVCACCOUNT=&amp;quot;NT Authority\Network Service&amp;quot; /AGTSVCACCOUNT=&amp;quot;NT Authority\Network Service&amp;quot; /SQLSVCStartuptype=2 /RSSVCStartupType=2 /ASSVCSTARTUPTYPE=2 /AGTSVCSTARTUPTYPE=2 /BROWSERSVCStartupType=2 /SQLSYSADMINACCOUNTS=&amp;quot;Builtin\Administrators&amp;quot; /ASSYSADMINACCOUNTS=&amp;quot;Builtin\Administrators&amp;quot; /SQMREPORTING=1 /ERRORREPORTING=1 /INDICATEPROGRESS&lt;/p&gt; &lt;/blockquote&gt;  &lt;ul&gt;   &lt;li&gt;Install required IIS components:&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;Open a command prompt as administrator&lt;/li&gt;      &lt;li&gt;Type the following command:&lt;/li&gt;   &lt;/ul&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;ServerManagerCmd -install WAS WAS-Process-Model WAS-NET-Environment WAS-Config-APIs Web-Server Web-WebServer Web-Common-Http Web-Static-Content Web-Default-Doc Web-Dir-Browsing Web-Http-Errors Web-Http-Redirect Web-App-Dev Web-Asp-Net Web-Net-Ext Web-ISAPI-Ext Web-ISAPI-Filter Web-Health Web-Http-Logging Web-Request-Monitor Web-Security Web-Windows-Auth Web-Filtering Web-Performance Web-Stat-Compression Web-Mgmt-Tools Web-Mgmt-Console Web-Mgmt-Compat Web-Metabase Web-WMI Web-Lgcy-Scripting Web-Lgcy-Mgmt-Console&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;At this point, you’re now ready to run setup.exe from the TFS media. You have a fully configured SQL server and the requires IIS pre-requisites installed.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Other useful SQL 2008 setup.exe command lines&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;For a TFS “Application Tier Only” install, IIS is one pre-requisite and the “SQL Client Tools Connectivity” is the other one.&amp;#160; This is required so that the TFS Job Agent can talk to Analysis Services and tell it to process the warehouse.&amp;#160; Here’s how to install just the client tools:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;setup.exe /ACTION=Install /FEATURES=&lt;strong&gt;Conn&lt;/strong&gt; /ERRORREPORTING=1 /INDICATEPROGRESS /SQMREPORTING /Q&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;If you just want to install SQL Server Management Studio on your developer machine:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;setup.exe /ACTION=Install /FEATURES=ADV_SSMS /ERRORREPORTING=1 /INDICATEPROGRESS /SQMREPORTING /Q&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;For more information, see &lt;a href="http://msdn.microsoft.com/en-us/library/ms144259.aspx"&gt;How to: Install SQL Server 2008 from the Command Prompt&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/ms144259.aspx#Feature"&gt;available features&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9908929" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="VS2010" scheme="http://blogs.msdn.com/granth/archive/tags/VS2010/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /></entry><entry><title>Scripting Team Project Creation in TFS2010</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/09/25/scripting-team-project-creation-in-tfs2010.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/09/25/scripting-team-project-creation-in-tfs2010.aspx</id><published>2009-09-26T00:17:46Z</published><updated>2009-09-26T00:17:46Z</updated><content type="html">&lt;p&gt;In TFS2008 SP1 and the subsequent &lt;a href="http://go.microsoft.com/?linkid=9635516"&gt;power tools release&lt;/a&gt; it was possible to create a team project from the command line. You can read Will-Peter’s detailed blog post on &lt;a href="http://dotnet.org.za/willy/archive/2008/08/21/vsts-tfs2008-service-pack-1-nugget-5-creating-a-team-project-from-the-command-line.aspx"&gt;Creating a Team Project from the command line in TFS2008&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;In TFS2010, it’s still not as good as we would like (it’s still client-based rather than server-based). But there’s one important difference – the feature has been rolled into the product and is no longer a power tool.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;How to create a team project from the command line in TFS2010:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Create an XML file with the following contents and save it somewhere (e.g. C:\temp\pcw.xml). Substitute the highlighted as appropriate:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;     &lt;br /&gt;&amp;lt;Project xmlns=&amp;quot;ProjectCreationSettingsFileSchema.xsd&amp;quot;&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TFSName&amp;gt;&lt;font color="#ff0000"&gt;http://tfsserver:8080/tfs/DefaultCollection&lt;/font&gt;&amp;lt;/TFSName&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;LogFolder&amp;gt;&lt;font color="#ff0000"&gt;c:\temp&lt;/font&gt;&amp;lt;/LogFolder&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ProjectName&amp;gt;&lt;font color="#ff0000"&gt;TestAgile2&lt;/font&gt;&amp;lt;/ProjectName&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ProjectSiteEnabled&amp;gt;&lt;font color="#ff0000"&gt;true&lt;/font&gt;&amp;lt;/ProjectSiteEnabled&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ProjectSiteTitle&amp;gt;&lt;font color="#ff0000"&gt;TestAgile2&lt;/font&gt;&amp;lt;/ProjectSiteTitle&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ProjectSiteDescription&amp;gt;&lt;font color="#ff0000"&gt;TestAgile2 &lt;/font&gt;project created from command line&amp;lt;/ProjectSiteDescription&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;SccCreateType&amp;gt;New&amp;lt;/SccCreateType&amp;gt;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;SccBranchFromPath&amp;gt;&amp;lt;/SccBranchFromPath&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ProcessTemplateName&amp;gt;&lt;font color="#ff0000"&gt;MSF for Agile Software Development v5.0&lt;/font&gt;&amp;lt;/ProcessTemplateName&amp;gt;      &lt;br /&gt;&amp;lt;/Project&amp;gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Once you have created the file, you need to prepare Visual Studio to be automated and trigger the automation from the command line.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open Visual Studio 2010&lt;/li&gt;    &lt;li&gt;Go to View &amp;gt; Team Explorer and make sure that the Team Explorer tab is active&lt;/li&gt;    &lt;li&gt;Close Visual Studio 2010&lt;/li&gt;    &lt;li&gt;Open a command prompt&lt;/li&gt;    &lt;li&gt;Type: CD /D %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE&lt;/li&gt;    &lt;li&gt;Type: &lt;strong&gt;devenv /command &amp;quot;File.BatchNewTeamProject &lt;font color="#ff0000"&gt;C:\temp\pcw.xml&amp;quot;&lt;/font&gt;&lt;/strong&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;At this point, Visual Studio will open and the Team Explorer tab will show “Connecting to server\collection…”.&amp;#160; In the background it’s actually creating the team project. You can verify this by looking for a txt file with the name of your project in the path you specified for LogFolder. (e.g. c:\temp\TestAgile2.txt)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/ScriptingTeamProjectCreationinTFS2010_C908/image_2.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Team Explorer connecting to server" border="0" alt="Team Explorer connecting to server" src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/ScriptingTeamProjectCreationinTFS2010_C908/image_thumb.png" width="286" height="101" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Once the project has been created, you can select ‘Add existing team project’ and select it from the dialog.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/ScriptingTeamProjectCreationinTFS2010_C908/image_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Connect to Team Project dialog" border="0" alt="Connect to Team Project dialog" src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/ScriptingTeamProjectCreationinTFS2010_C908/image_thumb_1.png" width="264" height="121" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;If you want to create a fully-automated project provisioning system there are a few other things that you’ll need to do on top of creating the team project. Some of these things are:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Add users to TFS groups (Project Administrators, Contributors, Readers)&lt;/li&gt;    &lt;li&gt;Add permissions in sharepoint&lt;/li&gt;    &lt;li&gt;Add permissions in reporting services&lt;/li&gt; &lt;/ul&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9899712" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /></entry><entry><title>TFS2010: How to make Beta1 SharePoint sites work after upgrading to Beta2</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/08/31/tfs2010-how-to-make-beta1-sharepoint-sites-work-after-upgrading-to-beta2.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/08/31/tfs2010-how-to-make-beta1-sharepoint-sites-work-after-upgrading-to-beta2.aspx</id><published>2009-09-01T00:55:45Z</published><updated>2009-09-01T00:55:45Z</updated><content type="html">&lt;p&gt;Just like my last blog post on &lt;a href="http://blogs.msdn.com/granth/archive/2009/08/31/tfs2010-replacing-beta1-process-templates-with-beta2-versions.aspx"&gt;uploading the beta2 process templates to an upgraded beta1 server&lt;/a&gt;, I’ll admit that the audience for this blog post is also small. However, we hit this after upgrading our &lt;a href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx"&gt;VSTS Pioneer Dogfood TFS server&lt;/a&gt; from Beta1 to an early Beta2 build last weekend.&lt;/p&gt;  &lt;p&gt;I’m fortunate to share an office with another Australian (Hi Phil!) who happens to be on the ‘Process’ team that builds all the TFS SharePoint templates &amp;amp; dashboards, so we were able to diagnose &amp;amp; fix this issue quickly this morning.&lt;/p&gt;  &lt;p&gt;&lt;font color="#ff0000"&gt;Note: These steps will only allow you to get access to the content that existed when it was a Beta1 server – most of the dashboards will be broken because of warehouse schema changes between TFS Beta1 &amp;amp; Beta2.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Symptoms&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;After you upgrade a TFS2010 Beta1 server to a Beta2 build, you may not be able to access your old SharePoint sites. You’ll receive a SharePoint error page that says “File Not Found”. This can also happen if you take the SharePoint content database from a Beta1 server and attach it to a new Beta2 server. When debugging SharePoint issues, sometimes browsing to /&amp;lt;site&amp;gt;/_layouts/viewlsts.aspx will give you an idea if the site actually exists or if it’s completely broken. In this case, browsing to viewlsts.aspx shows all the document libraries but they all show ‘File Not Found’ when you browse through to them.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/TFS2010HowtomakeBeta1SharePointsiteswork_D1E6/clip_image001_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="SharePoint File Not Found error" border="0" alt="SharePoint File Not Found error" src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/TFS2010HowtomakeBeta1SharePointsiteswork_D1E6/clip_image001_thumb.png" width="550" height="352" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Cause&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;The reason this happens is because between TFS2010 Beta1 and Beta2, the dashboards team were working on SharePoint 2010 compatibility. One of the things they identified is that the existing approach of TFS having it’s own master page didn’t work too well (or look very pretty) when somebody used SharePoint 2010. So they made changes to the TFS templates to use the default SharePoint master page &amp;amp; style everything with a SharePoint theme (i.e. using CSS). &lt;/p&gt;  &lt;p&gt;The unfortunate side-effect is that on a clean SharePoint server that only has the Beta2 version of the TFS SharePoint extensions installed, the master page from Beta1 doesn’t exist on disk – therefore SharePoint can’t display any pages that refer to that master page (i.e. most of them).&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Resolution&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;I’m sure there are many other ways to solve this (write an app, write a PowerShell script, etc) but this is the one that we used.&lt;/p&gt;  &lt;p&gt;The first thing you need to do is download the “SharePoint Manager 2007” application to edit the properties on each of the sites. &lt;a href="http://www.codeplex.com/spm"&gt;http://www.codeplex.com/spm&lt;/a&gt;. This must be run on the SharePoint server and it must be run as an Administrator (SharePoint 2007 doesn’t have a separate installable object model and even if it did, connecting to a remote farm isn’t possible).&lt;/p&gt;  &lt;p&gt;When you open SharePoint Manager, you’ll need to browse down into Content Service &amp;gt; Web Applications &amp;gt; Default Web Site &amp;gt; Site Collection &amp;gt; Your Beta1 Site Collection URL &amp;gt; Your Beta1 Site Collection Name &amp;gt; Webs &amp;gt; Select a web (see screenshot)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/TFS2010HowtomakeBeta1SharePointsiteswork_D1E6/clip_image002_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="SharePoint Manager 2007" border="0" alt="SharePoint Manager 2007" src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/TFS2010HowtomakeBeta1SharePointsiteswork_D1E6/clip_image002_thumb.png" width="550" height="354" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The &lt;strong&gt;MasterUrl&lt;/strong&gt; is the property that you need to change to remove the ‘File Not Found’ error and get access to your site.&lt;/p&gt;  &lt;p&gt;Beta1&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;/sites/&amp;lt;collection&amp;gt;/&amp;lt;site&amp;gt;/_catalogs/masterpage/dashboards.master&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Beta2&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;/sites/&amp;lt;collection&amp;gt;/&amp;lt;site&amp;gt;/_catalogs/masterpage/default.master&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;There are two other things you need to do if you want your Beta1 sites to look like Beta2 sites.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Clear the &lt;strong&gt;AlternateCssUrl&lt;/strong&gt; property. (In Beta1 it was set to /_layouts/1033/STYLES/Microsoft.VSTS.Process.Dashboards/css/dashboards.css)&lt;/li&gt;    &lt;li&gt;Change the theme of the site to the Team Foundation Dashboards (TFSDASHBOARDS) theme. This theme is stored in: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\THEMES\TFSDASHBOARDS&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Once again, there are multiple ways to add a new theme &amp;amp; apply it to the site, but this one worked for us. Before you can select the TFSDASHBOARDS theme, you need to add it to the list of available themes.&lt;/p&gt;  &lt;p&gt;On a web frontend server, open the following file and add a new &amp;lt;Template&amp;gt; definition: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1033\SPTHEMES.XML&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;lt;Templates&amp;gt;&lt;/p&gt;    &lt;p&gt;&amp;#160; &amp;lt;TemplateID&amp;gt;TFSDASHBOARDS&amp;lt;/TemplateID&amp;gt;&lt;/p&gt;    &lt;p&gt;&amp;#160; &amp;lt;DisplayName&amp;gt;Team Foundation Dashboards&amp;lt;/DisplayName&amp;gt;&lt;/p&gt;    &lt;p&gt;&amp;#160; &amp;lt;Description&amp;gt;A blue-grey theme for Team Foundation Server Dashboards&amp;lt;/Description&amp;gt;&lt;/p&gt;    &lt;p&gt;&amp;#160; &amp;lt;Thumbnail&amp;gt;images/thwheat.gif&amp;lt;/Thumbnail&amp;gt;&lt;/p&gt;    &lt;p&gt;&amp;#160; &amp;lt;Preview&amp;gt;images/thwheat.gif&amp;lt;/Preview&amp;gt;&lt;/p&gt;    &lt;p&gt;&amp;lt;/Templates&amp;gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Then restart IIS. (Think these steps are crazy? That’s the official way from the SharePoint docs on MSDN, &lt;a href="http://msdn.microsoft.com/en-us/library/aa979310.aspx"&gt;How to: Customize Themes&lt;/a&gt;).&lt;/p&gt;  &lt;p&gt;Then you should be able to go to Site Action &amp;gt; Site Settings &amp;gt; Look and Feel &amp;gt; Site theme (/_layouts/themeweb.aspx) and select the ‘Team Foundation Dashboards’ theme.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/TFS2010HowtomakeBeta1SharePointsiteswork_D1E6/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Changing SharePoint site theme to TFS Dashboards theme" border="0" alt="Changing SharePoint site theme to TFS Dashboards theme" src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/TFS2010HowtomakeBeta1SharePointsiteswork_D1E6/image_thumb.png" width="550" height="301" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Hope this helps&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9889573" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author></entry><entry><title>TFS2010: Replacing Beta1 Process Templates with Beta2 versions</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/08/31/tfs2010-replacing-beta1-process-templates-with-beta2-versions.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/08/31/tfs2010-replacing-beta1-process-templates-with-beta2-versions.aspx</id><published>2009-09-01T00:19:47Z</published><updated>2009-09-01T00:19:47Z</updated><content type="html">&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: It turns out that in the final release of Beta2 (instead of the pre-Beta2 build we’re using), we will rename the existing Beta1 templates to “Process Template X (Beta 1)” and upload new versions of the templates – so this won’t be as painful.&lt;/p&gt;  &lt;p&gt;I’ll admit that the audience for this blog post is small, since TFS2010 Beta1 did not have a go-live license and there will be very few people who upgrade a Beta1 server to Beta2. However, we hit this after upgrading our &lt;a href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx"&gt;VSTS Pioneer Dogfood TFS server&lt;/a&gt; from Beta1 to an early Beta2 build last weekend.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Problem #1 – Cannot create new team projects&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;After you upgrade a TFS Beta1 server to TFS Beta2, you may be unable to add new Team Projects to an existing Team Project Collection (TPC). When you run the Project Creation Wizard, it may fail with the following error message in the log:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;/p&gt;    &lt;p&gt;2009-08-31T14:03:39 | Module: GSSStructureUploader | Thread: 17 | TF30181: Error occurred while adding access entry : action name: &amp;quot;ADMINISTER_TEST_ENVIRONMENTS&amp;quot; sid: &amp;quot;S-1-9-1551374245-678206409-4164841793-2695741645-3025924470-1-334192246-596365894-2376495270-2693603616&amp;quot;&amp;#160; deny: &amp;quot;True&amp;quot;&lt;/p&gt;    &lt;p&gt;Exception Message: TF50609: Unable to retrieve information for action ADMINISTER_TEST_ENVIRONMENTS, it does not exist.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The reason this happens, is because the old Beta1 Process Templates are still in the TPC – the upgrade does not replace them. (What would you think if we dropped any customizations you made to the process templates and uploaded new ones over the top?).&lt;/p&gt;  &lt;p&gt;So, the solution is to delete these process templates and upload new ones.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Problem #2 – Cannot upload new process templates&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;When you try and upload the new process templates to the collection, you may receive another error. If you look in the log, it might look something like this:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;2009-08-31T12:29:39 | Module: Work Item Tracking | Thread: 45 | Validating work item type from file 'C:\TEMP\ProcessTemplates\MSF for Agile Software Development v5.0\WorkItem Tracking\TypeDefinitions\TestCase.xml'...&lt;/p&gt;    &lt;p&gt;Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionValidationException&lt;/p&gt;    &lt;p&gt;Exception Message: TF237091: Actual reporting settings for the field Microsoft.VSTS.TCM.AutomationStatus are different from those specified in the XML. Changing these settings is prohibited.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The reason this happens, is because in the Beta1 process template, the ‘Reporting Type’ property is set to ‘detail’, whereas in the Beta2 process template it has changed to ‘dimension’. &lt;/p&gt;  &lt;p&gt;Beta1:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;C:\&amp;gt;witadmin listfields /collection:http://server:8080/tfs/collection /n:Microsoft.VSTS.TCM.AutomationStatus&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Field: Microsoft.VSTS.TCM.AutomationStatus&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Name: Automation status&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Type: String&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Use: 2Do (Test Case), CodeReviewer (Test Case), Intellisets (Test Case), TestAgile (Test Case), TestAgile1 (Test Case)&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Indexed: False&lt;/p&gt;    &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Reportable As: &lt;font color="#ff0000"&gt;&lt;strong&gt;detail&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;b&gt;Beta2:&lt;/b&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;FIELD reportable=&amp;quot;&lt;strong&gt;&lt;font color="#ff0000"&gt;dimension&lt;/font&gt;&lt;/strong&gt;&amp;quot; type=&amp;quot;String&amp;quot; name=&amp;quot;Automation status&amp;quot; refname=&amp;quot;Microsoft.VSTS.TCM.AutomationStatus&amp;quot;&amp;gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Changing the reporting type of a field is not something that the process template upload service will do for you. Fortunately the solution is fairly simple, you just have to change the reporting type of the field before uploading the new process template.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Steps to replace your process templates with Beta2 versions&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Logon to the TFS Admin Console on the Application Tier &lt;/li&gt;    &lt;li&gt;Create a new Team Project Collection &lt;/li&gt;    &lt;li&gt;Using a computer with Team Explorer installed: &lt;/li&gt;    &lt;li&gt;Connect to the new collection &lt;/li&gt;    &lt;li&gt;Right-click on the server name, choose ‘Team Project Settings &amp;gt; Process Tempaltes’ &lt;/li&gt;    &lt;li&gt;Download each of the new Process Templates to a local folder &lt;/li&gt;    &lt;li&gt;Open a Visual Studio command prompt and run the following command: witadmin changefield /collection:http://server:8080/tfs/collection /p:Project /n:Microsoft.VSTS.TCM.AutomationStatus /reportingtype:dimension &lt;/li&gt;    &lt;li&gt;Connect to the collection that was upgraded from Beta1 &lt;/li&gt;    &lt;li&gt;Right-click on the server name, choose ‘Team Project Settings &amp;gt; Process Tempaltes’ &lt;/li&gt;    &lt;li&gt;Delete existing Beta1 Process templates &lt;/li&gt;    &lt;li&gt;Upload each of the Beta2 process templates that you downloaded earlier &lt;/li&gt;    &lt;li&gt;Create a new team project with the new version of the process template &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Hope this helps. Stay tuned for more upgrade stories.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9889547" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author></entry><entry><title>VSTS Pioneer TFS2010 Dogfood Server: Statistics August 2009</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-statistics-august-2009.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-statistics-august-2009.aspx</id><published>2009-08-27T21:44:00Z</published><updated>2009-08-27T21:44:00Z</updated><content type="html">&lt;P&gt;&lt;I&gt;(This blog post is part of a series of posts on the new &lt;A href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx" mce_href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx"&gt;VSTS Pioneer TFS dogfood server&lt;/A&gt;.)&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Everybody loves statistics, so here are the statistics for the first month on the VSTS Pioneer server.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Recent Users: 415&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Work Item Tracking&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Users with Assigned Work Items: 2,454&lt;/LI&gt;
&lt;LI&gt;Work Items: 111,319&lt;/LI&gt;
&lt;LI&gt;Areas &amp;amp; Iterations: 2,811&lt;/LI&gt;
&lt;LI&gt;Work Item Versions: 1,056,416&lt;/LI&gt;
&lt;LI&gt;Work Item Attachments: 50,833&lt;/LI&gt;
&lt;LI&gt;Work Item Queries: 2,965&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Version Control&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Files &amp;amp; Folders: 8,561,565&lt;/LI&gt;
&lt;LI&gt;Compressed File Sizes (MB): 325,080&lt;/LI&gt;
&lt;LI&gt;Uncompressed File Sizes (MB): 856,859&lt;/LI&gt;
&lt;LI&gt;Checkins: 18,867&lt;/LI&gt;
&lt;LI&gt;Shelvesets: 1,982&lt;/LI&gt;
&lt;LI&gt;Merge History: 1,789,333&lt;/LI&gt;
&lt;LI&gt;Pending Changes: 48,155&lt;/LI&gt;
&lt;LI&gt;Workspaces: 727&lt;/LI&gt;
&lt;LI&gt;Local Copies: 184,231,208&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;These statistics are captured by using the TFS Best Practices Analyzer and a custom configuration file. The configuration tells the BPA tool to run a series of &lt;A href="http://blogs.msdn.com/bharry/archive/2007/12/02/tfs-statistics-update.aspx" mce_href="http://blogs.msdn.com/bharry/archive/2007/12/02/tfs-statistics-update.aspx"&gt;SQL queries&lt;/A&gt; and dump the results to an XML file. I have then created an XSLT that transforms the results into a more user-friendly HTML file. The BPA tool is then scheduled to run every night and generate a fresh set of statistics. I’m working with the TFS BPA team to get this configuration built into the next version of the BPA tool – I don’t have an ETA on when that will ship, but stay tuned.&lt;/P&gt;
&lt;P&gt;This month I’ve also pulled the last 30 days of PerfMon counters to see how our hardware choices are holding up. If you’d like to setup something like this for yourself, have a look at my &lt;A href="http://blogs.msdn.com/granth/archive/2008/09/23/relogging-perfmon-binary-log-files-to-sql.aspx" mce_href="http://blogs.msdn.com/granth/archive/2008/09/23/relogging-perfmon-binary-log-files-to-sql.aspx"&gt;previous&lt;/A&gt; &lt;A href="http://blogs.msdn.com/granth/archive/2008/11/07/querying-perfmon-data-from-sql.aspx" mce_href="http://blogs.msdn.com/granth/archive/2008/11/07/querying-perfmon-data-from-sql.aspx"&gt;posts&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Disk Performance&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;Things are looking OK on the IO front. 95% of the time we’re pushing 45MB/sec (Read) and 33MB/sec (Write) or less to and from our storage. The response time is &amp;lt;40ms which is nothing to worry about for the configuration we have.&lt;/P&gt;
&lt;P&gt;
&lt;TABLE border=1 cellSpacing=0 cellPadding=0 width=549&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD vAlign=bottom width=167&gt;
&lt;P&gt;&lt;STRONG&gt;LogicalDisk(_Total)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=118&gt;
&lt;P&gt;&lt;B&gt;50th Percentile &lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=135&gt;
&lt;P&gt;&lt;B&gt;95th Percentile &lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=128&gt;
&lt;P&gt;&lt;B&gt;99th Percentile &lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=bottom width=167&gt;
&lt;P&gt;Avg. Disk sec/Read&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=118&gt;
&lt;P align=right&gt;0.004 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=135&gt;
&lt;P align=right&gt;0.039 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=128&gt;
&lt;P align=right&gt;0.371 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=bottom width=167&gt;
&lt;P&gt;Avg. Disk sec/Write&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=118&gt;
&lt;P align=right&gt;0.003 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=135&gt;
&lt;P align=right&gt;0.023 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=128&gt;
&lt;P align=right&gt;0.063 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=bottom width=167&gt;
&lt;P&gt;Disk Read Bytes/sec&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=118&gt;
&lt;P align=right&gt;2,142,548 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=135&gt;
&lt;P align=right&gt;44,926,021 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=128&gt;
&lt;P align=right&gt;94,273,782 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=bottom width=167&gt;
&lt;P&gt;Disk Write Bytes/sec&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=118&gt;
&lt;P align=right&gt;1,908,518 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=135&gt;
&lt;P align=right&gt;33,029,252 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=128&gt;
&lt;P align=right&gt;70,802,346 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=bottom width=167&gt;
&lt;P&gt;Avg. Disk Bytes/Transfer&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=118&gt;
&lt;P align=right&gt;42,867 &lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=135&gt;
&lt;P align=right&gt;133,887&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=bottom width=128&gt;
&lt;P align=right&gt;436,920 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Memory&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;The memory usage on our SQL server has remained completely constant. This is because SQL is set to use a fixed amount and Analysis Services &amp;amp; Reporting Services share the rest.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;CPU Performance&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(Avg: 32%). &lt;/EM&gt;The majority of this usage is SQL Server, with a small portion going to Analysis Services &amp;amp; Reporting Services. It’s nice to see that we still have plenty of capacity left for the usage to grow.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerStatistic_CEFF/clip_image001_2.png" mce_href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerStatistic_CEFF/clip_image001_2.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=clip_image001 border=0 alt=clip_image001 src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerStatistic_CEFF/clip_image001_thumb.png" width=550 height=336 mce_src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerStatistic_CEFF/clip_image001_thumb.png"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That’s all for statistics, stay tuned for more next month.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9887468" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="Performance" scheme="http://blogs.msdn.com/granth/archive/tags/Performance/default.aspx" /><category term="VS2010" scheme="http://blogs.msdn.com/granth/archive/tags/VS2010/default.aspx" /><category term="VSTS Version Control" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Version+Control/default.aspx" /><category term="VSTS Developing" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Developing/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /><category term="Pioneer Dogfood" scheme="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx" /></entry><entry><title>VSTS Pioneer TFS2010 Dogfood Server – Hardware &amp; Topology</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-hardware-topology.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-hardware-topology.aspx</id><published>2009-08-27T18:23:00Z</published><updated>2009-08-27T18:23:00Z</updated><content type="html">&lt;P&gt;&lt;I&gt;(This blog post is part of a series of posts on the new &lt;A href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx" mce_href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx"&gt;VSTS Pioneer TFS dogfood server&lt;/A&gt;.)&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;While running the main TFS server for ~3,500 users in Developer Division we got a pretty good idea of the hardware required to support our enormous number of files, local versions &amp;amp; branches. &lt;/P&gt;
&lt;P&gt;We knew that:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;our SQL Server load patterns were very IO intensive&lt;/LI&gt;
&lt;LI&gt;our SQL Server load patterns were very CPU intensive&lt;/LI&gt;
&lt;LI&gt;our disk usage will grow by about 300% per year&lt;/LI&gt;
&lt;LI&gt;the number of operations the server performs will increase&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;B&gt;Servers&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;We wanted to purchase and setup hardware that was flexible enough and designed to scale as our needs do. For this reason we settled on two identical servers that are part of the Microsoft IT recommended systems for our needs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://h10010.www1.hp.com/wwpc/us/en/en/WF06a/15351-15351-3328412-241644-3328422-3454575.html" mce_href="http://h10010.www1.hp.com/wwpc/us/en/en/WF06a/15351-15351-3328412-241644-3328422-3454575.html"&gt;HP ProLiant DL580G5&lt;/A&gt; (room to add two more processors &amp;amp; upgradeable to 256GB RAM)&lt;/LI&gt;
&lt;LI&gt;Windows 2008 x64 SP2&lt;/LI&gt;
&lt;LI&gt;2x 6-core Intel Xeon X7460 2.66Ghz processors&lt;/LI&gt;
&lt;LI&gt;32GB RAM&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.qlogic.com/Products/SAN_products_FCHBA_QLE2460.aspx" mce_href="http://www.qlogic.com/Products/SAN_products_FCHBA_QLE2460.aspx"&gt;QLogic QLE2460 4Gbps Fiber Channel Host Bus Adapter&lt;/A&gt; (SAN connection)&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;A href="http://sqlblog.com/blogs/joe_chang/archive/2008/08/19/recommended-server-systems-2008-q3.aspx" mce_href="http://sqlblog.com/blogs/joe_chang/archive/2008/08/19/recommended-server-systems-2008-q3.aspx"&gt;According to Joe Chang&lt;/A&gt; who studies SQL Server performance, the “The X7460 (Dunnington) is a clear winner at 4-way for the high-call volume apps.” The 6-core CPUs also offer a pretty significant performance boost over the older quad-core CPUs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;“On TPC-C, the 7460 six core generated a 34% edge over the quad core AMD and 56% advantage over the quad core X3750”, and&lt;/LI&gt;
&lt;LI&gt;“On TPC-E, the six core showed a 49% edge over the older quad core”&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;B&gt;Virtual Machines&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;We are running 5 virtual machines at the moment with almost identical configurations. Since we’ll be constantly upgrading things like the .NET CLR that often don’t support build-to-build upgrades or clean uninstall, running the application tiers as VM’s makes perfect sense. It also improves our rollback story if we have a failed upgrade. (More about upgrade in a future post). 
&lt;TABLE border=1 cellSpacing=0 cellPadding=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=129&gt;
&lt;P&gt;&lt;B&gt;VM&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=279&gt;
&lt;P&gt;&lt;B&gt;Purpose&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=289&gt;
&lt;P&gt;&lt;B&gt;Configuration&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=129&gt;
&lt;P&gt;AT01, AT02, AT03&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=279&gt;
&lt;P&gt;TFS Application Tier&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=289&gt;
&lt;P&gt;Windows Server 2008 R2&lt;/P&gt;
&lt;P&gt;4 Virtual processors&lt;/P&gt;
&lt;P&gt;4GB RAM&lt;/P&gt;
&lt;P&gt;2 Virtual NICs&lt;/P&gt;
&lt;P&gt;1 VHD for C$&lt;/P&gt;
&lt;P&gt;1 VHD for version control cache&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=129&gt;
&lt;P&gt;MIRROR&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=279&gt;
&lt;P&gt;TFS-TFS Connector tool runs here&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=289&gt;
&lt;P&gt;Windows Server 2008 RTM&lt;/P&gt;
&lt;P&gt;4 Virtual processors&lt;/P&gt;
&lt;P&gt;4GB RAM&lt;/P&gt;
&lt;P&gt;1 Virtual NIC&lt;/P&gt;
&lt;P&gt;1 VHD for C$&lt;/P&gt;
&lt;P&gt;1 VHD for version control temporary workspace&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=129&gt;
&lt;P&gt;MOSS&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=279&gt;
&lt;P&gt;Microsoft Office SharePoint 2007 SP2 (Complete install)&lt;/P&gt;
&lt;P&gt;Web Front End, Excel Services, Search Services &amp;amp; Shared Services Provider&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=289&gt;
&lt;P&gt;Windows Server 2008 R2&lt;/P&gt;
&lt;P&gt;4 Virtual processors&lt;/P&gt;
&lt;P&gt;4GB RAM&lt;/P&gt;
&lt;P&gt;1 Virtual NIC&lt;/P&gt;
&lt;P&gt;1 VHD for C$&lt;/P&gt;
&lt;P&gt;Databases reside on physical SQL server&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Storage&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;Since these servers are hosted by the DevDiv IT guys, we went with their recommendation for storage. They already have a massive storage infrastructure for build &amp;amp; drop servers built on &lt;A href="http://www.xiotech.com/" mce_href="http://www.xiotech.com/"&gt;Xiotech&lt;/A&gt; technology, so it was easy for them to add additional &lt;A href="http://www.xiotech.com/Products-and-Services_ISE.aspx" mce_href="http://www.xiotech.com/Products-and-Services_ISE.aspx"&gt;ISE units&lt;/A&gt; to meet our size &amp;amp; performance requirements. In the end we ended up with the following configuration:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;5TB of “Balanced” storage&lt;/LI&gt;
&lt;LI&gt;5TB of “Performance” storage&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The &lt;A href="http://sqlcat.com/top10lists/archive/2007/11/21/storage-top-10-best-practices.aspx" mce_href="http://sqlcat.com/top10lists/archive/2007/11/21/storage-top-10-best-practices.aspx"&gt;SQL Customer Advisory Team’s – Storage Top 10 Best Practices&lt;/A&gt; is a great resource when planning your own TFS deployment. In particular we specifically considered the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Isolate log from data at the physical disk level (e.g. O$ drive is on separate spindles)&lt;/LI&gt;
&lt;LI&gt;Consider configuration of TEMPDB database (e.g. T$ drive is on separate spindles)&lt;/LI&gt;
&lt;LI&gt;Make sure to give thought to the growth strategy up front (e.g. We can add additional ISE units at any time and grow any drive without having to migrate data)&lt;/LI&gt;
&lt;LI&gt;Lining up the number of data files with CPU’s has scalability advantages for allocation intensive workloads. (e.g. we have 12 datafiles for TempDB because we have 12 CPU cores)&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Here’s how the virtual disks (LUNs) are configured on the server:&lt;/P&gt;
&lt;P&gt;&lt;B&gt;SERVER1 (SQL, SSRS, SSAS)&lt;/B&gt; 
&lt;TABLE border=1 cellSpacing=0 cellPadding=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;&lt;B&gt;Drive&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=268&gt;
&lt;P&gt;&lt;B&gt;Purpose&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=98&gt;
&lt;P&gt;&lt;B&gt;Storage Type&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;&lt;B&gt;Size (Gb)&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;E$&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=268&gt;
&lt;P&gt;SQL backup dump drive&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=98&gt;
&lt;P&gt;Balanced&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;2741&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;G$&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=268&gt;
&lt;P&gt;LocalVersion filegroup&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=98&gt;
&lt;P&gt;Performance&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;1673&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;I$&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=268&gt;
&lt;P&gt;OLAP data&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=98&gt;
&lt;P&gt;Balanced&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;25&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;J$&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=268&gt;
&lt;P&gt;All database data&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=98&gt;
&lt;P&gt;Performance&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;1833&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;K$&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=268&gt;
&lt;P&gt;Version filegroup&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=98&gt;
&lt;P&gt;Performance&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;971&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;O$&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=268&gt;
&lt;P&gt;Transaction Logs&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=98&gt;
&lt;P&gt;Balanced&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;1500&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;T$&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=268&gt;
&lt;P&gt;TempDB&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=98&gt;
&lt;P&gt;Performance&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;500&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;SERVER2 (Hyper-V Host)&lt;/B&gt; 
&lt;TABLE border=1 cellSpacing=0 cellPadding=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;&lt;B&gt;Drive&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=102&gt;
&lt;P&gt;&lt;B&gt;Purpose&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=75&gt;
&lt;P&gt;&lt;B&gt;Type&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;&lt;B&gt;Size (Gb)&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width=64&gt;
&lt;P&gt;E$&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=102&gt;
&lt;P&gt;Hyper-V VM's&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=75&gt;
&lt;P&gt;Balanced&lt;/P&gt;&lt;/TD&gt;
&lt;TD vAlign=top width=79&gt;
&lt;P&gt;743&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;P&gt;What’s cool about the Xiotech stuff is that it’s like Lego blocks – as you need more storage or more performance, you just buy more blocks and plug them in. What’s even cooler about it, is that you can control the SAN using web services – the build lab uses the &lt;A href="http://code.msdn.microsoft.com/sanman" mce_href="http://code.msdn.microsoft.com/sanman"&gt;SANMan&lt;/A&gt; tool they built to move virtual disks between build servers and automate the provisioning of disk space.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Topology&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;At just over 400 users, we probably don’t need three AT machines in a NLB configuration. However, NLB is an important new feature of TFS2010 and it’s a scenario that we need to dogfood for ourselves. &lt;/P&gt;
&lt;P&gt;Here’s some quick facts about our topology:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;We have a couple of “friendly name” DNS records for the NLB cluster IP, Reporting Services &amp;amp; Analysis Services – this allows us to change the underlying infrastructure without users having to connect to a new addresses.&lt;/LI&gt;
&lt;LI&gt;We’re running Windows 2008 R2 RTM on our VM’s &amp;amp; soon on our physical servers&lt;/LI&gt;
&lt;LI&gt;A single VM was created, then sysprep’d and copied. This means that we can spin up a new VM in a very short time period. (Copy VHD, Add to Hyper-V, Start, Join Domain, Apply Updates, Done.)&lt;/LI&gt;
&lt;LI&gt;SERVER2 is running an SMTP server that relays mail on behalf of each of the other servers. At Microsoft, the corporate mail servers will only accept mail from authenticated users that have mailboxes. By running the SMTP server as an authenticated user, it allows us to run the application tiers as Network Service. This means when we have to change a password to a service account, it doesn’t cause a TFS service interruption – just a brief SMTP interruption.&lt;/LI&gt;
&lt;LI&gt;Since all the SQL services are running on the same box, they don’t need to be run as a domain accounts either – no service interruption &amp;amp; less places that need a password changed when it expires.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;A href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerHardwareT_9F35/clip_image001_2.png" mce_href="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerHardwareT_9F35/clip_image001_2.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=clip_image001 border=0 alt=clip_image001 src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerHardwareT_9F35/clip_image001_thumb.png" width=501 height=384 mce_src="http://blogs.msdn.com/blogfiles/granth/WindowsLiveWriter/VSTSPioneerTFS2010DogfoodServerHardwareT_9F35/clip_image001_thumb.png"&gt;&lt;/A&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;That’s it for hardware and topology, next post is on performance and Dogfood statistics.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9887201" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="VSTS Planning &amp;amp; Tracking" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Planning+_2600_amp_3B00_+Tracking/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="VS2010" scheme="http://blogs.msdn.com/granth/archive/tags/VS2010/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /><category term="Pioneer Dogfood" scheme="http://blogs.msdn.com/granth/archive/tags/Pioneer+Dogfood/default.aspx" /></entry><entry><title>VSTS Pioneer TFS2010 Dogfood Server</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server.aspx</id><published>2009-08-27T18:21:00Z</published><updated>2009-08-27T18:21:00Z</updated><content type="html">&lt;P&gt;August 2009 marks an important milestone for TFS Dogfooding at Microsoft. &lt;/P&gt;
&lt;P&gt;In 2004 there was a dogfood server for &lt;A href="http://blogs.msdn.com/edhintz/archive/2007/06/20/the-team-foundation-dogfood-gravy-train.aspx" mce_href="http://blogs.msdn.com/edhintz/archive/2007/06/20/the-team-foundation-dogfood-gravy-train.aspx"&gt;parts of the TFS team&lt;/A&gt;, &lt;A href="http://blogs.msdn.com/johnlawr/archive/2005/03/04/385426.aspx" mce_href="http://blogs.msdn.com/johnlawr/archive/2005/03/04/385426.aspx"&gt;then it expanded&lt;/A&gt; to all of Team System (VSTS). Then other teams in Developer Division (DevDiv) saw the value of having your source code and bugs in the same repository. The &lt;A href="http://blogs.msdn.com/somasegar/archive/2007/06/18/so-what-does-microsoft-use-for-software-development.aspx" mce_href="http://blogs.msdn.com/somasegar/archive/2007/06/18/so-what-does-microsoft-use-for-software-development.aspx"&gt;division&lt;/A&gt; committed to using TFS and eventually &lt;A href="http://blogs.msdn.com/bharry/archive/2008/02/09/feb-08-devdiv-tfs-dogfood-statistics.aspx" mce_href="http://blogs.msdn.com/bharry/archive/2008/02/09/feb-08-devdiv-tfs-dogfood-statistics.aspx"&gt;on-boarded all teams&lt;/A&gt; to the new server. It was constantly patched and had a few major upgrades and eventually became the TFS server that the &lt;A href="http://blogs.msdn.com/bharry/archive/2008/09/15/september-08-devdiv-tfs-dogfood-statistics.aspx" mce_href="http://blogs.msdn.com/bharry/archive/2008/09/15/september-08-devdiv-tfs-dogfood-statistics.aspx"&gt;whole of DevDiv uses today&lt;/A&gt; (~3,500 users). &lt;/P&gt;
&lt;P&gt;But now that it is such an important server for the division, we can’t risk potential downtime during the development cycle caused by upgrades to new versions. As &lt;A href="http://blogs.msdn.com/bharry/archive/2008/07/03/july-08-devdiv-tfs-dogfood-statistics.aspx" mce_href="http://blogs.msdn.com/bharry/archive/2008/07/03/july-08-devdiv-tfs-dogfood-statistics.aspx"&gt;Brian has said&lt;/A&gt; in the past – “preventing almost 2,500 people from getting their work done is not a recipe for a long and healthy career”. Although it’s great that we’ve patched the server and got it to a point where we have &amp;gt;99% application availability, the TFS team has lost the ability to &lt;A href="http://blogs.msdn.com/bharry/archive/2007/04/18/april-devdiv-dogfood-statistics.aspx" mce_href="http://blogs.msdn.com/bharry/archive/2007/04/18/april-devdiv-dogfood-statistics.aspx"&gt;dogfood the latest releases&lt;/A&gt; of TFS and feel the pain (&lt;A href="http://blogs.msdn.com/bharry/archive/2008/09/16/team-foundation-server-2008-sp1-bug-fixes.aspx" mce_href="http://blogs.msdn.com/bharry/archive/2008/09/16/team-foundation-server-2008-sp1-bug-fixes.aspx"&gt;and fix it&lt;/A&gt;) before we inflict it upon our customers. &lt;/P&gt;
&lt;P&gt;Introducing the &lt;STRONG&gt;VSTS Pioneer &lt;/STRONG&gt;server:&lt;/P&gt;
&lt;P&gt;This is a server that &amp;gt;400 people on the VSTS team are now using instead of the main DevDiv server. All work items and a subset of the source code from the main server is mirrored to this server using a mostly rewritten version of the &lt;A href="http://www.codeplex.com/tfstotfsmigration" mce_href="http://www.codeplex.com/tfstotfsmigration"&gt;TFS-TFS Connector&lt;/A&gt; built on the &lt;A href="http://www.codeplex.com/MigrationSyncToolkit" mce_href="http://www.codeplex.com/MigrationSyncToolkit"&gt;TFS Integration Platform&lt;/A&gt; (more about that later – see &lt;A href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/06/29/vsts-rangers-project-tfs-migration-tools-configuration-demystified.aspx" mce_href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/06/29/vsts-rangers-project-tfs-migration-tools-configuration-demystified.aspx"&gt;Willy-Peter’s blog&lt;/A&gt; &lt;A href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/08/22/tfs-migration-tools-session-re-run-feedback-and-some-interesting-dogfooding-stats.aspx" mce_href="http://blogs.msdn.com/willy-peter_schaub/archive/2009/08/22/tfs-migration-tools-session-re-run-feedback-and-some-interesting-dogfooding-stats.aspx"&gt;for a preview&lt;/A&gt;). The server has been running &lt;A href="http://blogs.msdn.com/granth/archive/2009/05/20/visual-studio-team-system-2010-beta-1-download-links.aspx" mce_href="http://blogs.msdn.com/granth/archive/2009/05/20/visual-studio-team-system-2010-beta-1-download-links.aspx"&gt;TFS2010 Beta1&lt;/A&gt; since mid-July with no major issues and will be upgraded to a pre-Beta2 build this weekend. It will continue to be upgraded on a regular basis (we’re thinking every 1-2 months) and will always be the first production server to run the latest TFS builds.&lt;/P&gt;
&lt;P&gt;Coming up with the name for the server was interesting – the obvious choice is “VSTS Dogfood Server”, however that would mean we’d have two servers that people would call “the dogfood server”. This is a little ambiguous and awfully confusing. So I borrowed the term from the Exchange team who run their own mail server called “Pioneer” and this seems to have worked well.&lt;/P&gt;
&lt;P&gt;Everybody loves to hear about how Microsoft uses their own products, so I’m going to try and answer all the obvious questions with a series of blog posts over the next few days:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-hardware-topology.aspx" mce_href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-hardware-topology.aspx"&gt;VSTS Pioneer TFS2010 Dogfood Server: Hardware &amp;amp; Topology&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-statistics-august-2009.aspx" mce_href="http://blogs.msdn.com/granth/archive/2009/08/27/vsts-pioneer-tfs2010-dogfood-server-statistics-august-2009.aspx"&gt;VSTS Pioneer TFS2010 Dogfood Server: Statistics August 2009 &lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/granth/archive/2009/10/19/vsts-pioneer-tfs2010-dogfood-server-upgrading.aspx"&gt;VSTS Pioneer TFS2010 Dogfood Server: Upgrading&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;...More to come&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Let me know any questions you have or what you’d like to hear more about and I’ll see what I can do.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9887204" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author></entry><entry><title>How do you update all Work Item Type Definitions on a server?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/07/06/how-do-you-update-all-work-item-type-definitions-on-a-server.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/07/06/how-do-you-update-all-work-item-type-definitions-on-a-server.aspx</id><published>2009-07-07T04:28:04Z</published><updated>2009-07-07T04:28:04Z</updated><content type="html">&lt;p&gt;Today there was a question on one of the lists I’m on, it went something like this:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Has anyone written a tool that will batch-update WITD to all team projects on a server? Surely this must be a common scenario?&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;One of the built-in Windows commands that I use daily is the “FOR” command. Here’s how simple it is to upload a new Bug.xml for a list of projects.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;TFS2008      &lt;br /&gt;for %a in (&amp;quot;Project 1&amp;quot;, &amp;quot;Project 2&amp;quot;, &amp;quot;Project 3&amp;quot;) do witimport /f Bug.xml /t &lt;a href="http://tfsserver:8080"&gt;http://tfsserver:8080&lt;/a&gt; /p %a&lt;/p&gt;    &lt;p&gt;TFS2010      &lt;br /&gt;for %a in (&amp;quot;Project 1&amp;quot;, &amp;quot;Project 2&amp;quot;, &amp;quot;Project 3&amp;quot;) do witadmin importwid /s &lt;a href="http://tfsserver:8080/tfs/CollectionName"&gt;http://tfsserver:8080/tfs/CollectionName&lt;/a&gt; /p %a /f Bug.xml&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;If you wanted to get fancy, you could even create a teamprojects.txt file with a team project name per line, and use the /F parameter to read them from a file. There are a few subtleties with that though, make sure you quote any parameters that need quoting:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;for /F %a in (teamprojects.txt) do witimport /f Bug.xml /t &lt;a href="http://tfsserver:8080"&gt;http://tfsserver:8080&lt;/a&gt; /p “%a”&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;And the last example for today is if you want to run the same command on every file in a directory. I use this all the time with relog.exe, when I want to concatenate a directory of perfmon logfiles (one for each hour) and &lt;a href="http://blogs.msdn.com/granth/archive/2008/09/23/relogging-perfmon-binary-log-files-to-sql.aspx"&gt;change them to a different format&lt;/a&gt;. For example:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;for /R %a in (*.blg) do relog %a –f CSV –o output.csv –a&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Also remember, if you want to use the “FOR” command from within a batch file, you need to use %%a instead of just %a.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Update: &lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://blog.magenic.com/blogs/daniels/archive/2009/07/07/Updating-all-Work-Item-Type-Definitions-on-a-server-using-PowerShell.aspx"&gt;Also checkout Daniel Sniderman’s equivalent PowerShell script for updating all Work Item Type Definitions&lt;/a&gt;, and&lt;/li&gt;    &lt;li&gt;And &lt;a href="http://witsynchronizer.codeplex.com/"&gt;Loic Baumann’s WITSynchronizer&lt;/a&gt; on Codeplex&lt;/li&gt; &lt;/ul&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9821121" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author></entry><entry><title>Permissions required for Team Build Retention Policy in TFS2008</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/06/25/permissions-required-for-team-build-retention-policy-in-tfs2008.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/06/25/permissions-required-for-team-build-retention-policy-in-tfs2008.aspx</id><published>2009-06-25T23:34:00Z</published><updated>2009-06-25T23:34:00Z</updated><content type="html">&lt;P&gt;I got a question from one of our internal email lists today:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Our TFS build service is owned by a generic build account – domain\tfsbuild.&amp;nbsp; We have retention policy set up to retain a fixed set of builds.&amp;nbsp; The old builds were deleted when viewed via Team Explorer.&amp;nbsp; However, on the drop server, the builds are not deleted.&amp;nbsp; Apparently there’s an access issue when TFS attempted to delete the old builds.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Someone told me that the TFS service account will need admin rights. Is this true?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/aaronhallberg/" mce_href="http://blogs.msdn.com/aaronhallberg/"&gt;Aaron&lt;/A&gt; from the Team Build team did a good job of explaining what was happening:&lt;/P&gt;
&lt;P&gt;When TFS deletes build drops it first tries to have the build agent do the deletion, and then falls back to the AT.&amp;nbsp; Ideally, then, both the build service account and the AT service account would have full control to the root of the drop location.&amp;nbsp; This does &lt;I&gt;not&lt;/I&gt; mean that these accounts need to be administrators on the box, however – that should not be a requirement.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;There should be errors in the event log on the AT whenever TFS &lt;STRONG&gt;tries&lt;/STRONG&gt; to fully delete a drop – these should include the error that caused the deletion to fail.&amp;nbsp; You might have to get your friendly TFS administrator to have a look on the server and see if they find any such errors for the builds whose drops didn’t get deleted.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Another is that the drop locations were in use when they got deleted – this is fairly common, typically resulting in everything on the drop but the handful of files that were in use getting deleted, along with whatever folder structure got preserved as a result.&amp;nbsp; You might have a look at your undeleted drops to see if &lt;I&gt;everything&lt;/I&gt; is there, or just a few files. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9804475" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="VSTS Building &amp;amp; Releasing" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Building+_2600_amp_3B00_+Releasing/default.aspx" /><category term="VSTS Administering" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Administering/default.aspx" /></entry><entry><title>TFS Performance Report Pack now works with SSRS2005</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/granth/archive/2009/06/23/tfs-performance-report-pack-now-works-with-ssrs2005.aspx" /><id>http://blogs.msdn.com/granth/archive/2009/06/23/tfs-performance-report-pack-now-works-with-ssrs2005.aspx</id><published>2009-06-24T06:40:14Z</published><updated>2009-06-24T06:40:14Z</updated><content type="html">&lt;p&gt;Back in February, I released some of the reports that were created for our internal TFS servers on my blog as the &lt;a href="http://blogs.msdn.com/granth/archive/2009/02/03/announcing-tfs-performance-report-pack.aspx"&gt;TFS Performance Report Pack&lt;/a&gt;. I got countless emails and comments on the fact that some of them didn’t work with SQL Reporting Services 2005. &lt;/p&gt;  &lt;p&gt;Fortunately, Jim Saunders from the &lt;a href="http://blogs.msdn.com/dstfs/"&gt;Developer Support team&lt;/a&gt; at Microsoft (who have a great blog!) has re-created the three reports in the pack that required SQL2008 Reporting Services. Just download a different version of the reports from &lt;a href="http://blogs.msdn.com/dstfs/attachment/9792042.ashx"&gt;here&lt;/a&gt; and replace the ones in the original zip file.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/dstfs/archive/2009/06/19/the-tfs-performance-report-pack-and-sql-server-2005-reporting-services.aspx"&gt;From the support team blog&lt;/a&gt;:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;...He lists SQL Server 2008 Reporting Services as a requirement, with a note that they &lt;em&gt;should&lt;/em&gt; work in SSRS 2005. It turns out some of the reports function under both SSRS 2008 and 2005, some do not. Several posters have mentioned incompatibilities with some reports and SSRS 2005.&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;These reports are compatible with either SSRS version:&lt;/p&gt;    &lt;ul&gt;     &lt;li&gt;Server Status - Historical Performance Trends.rdl &lt;/li&gt;      &lt;li&gt;Server Status - Recent Performance Trends.rdl &lt;/li&gt;      &lt;li&gt;Server Status - Top Users Bypassing Proxies.rdl&lt;/li&gt;   &lt;/ul&gt;    &lt;p&gt;These reports require SSRS 2008:&lt;/p&gt;    &lt;ul&gt;     &lt;li&gt;Execution Time Summary.rdl &lt;/li&gt;      &lt;li&gt;Execution Time for User.rdl &lt;/li&gt;      &lt;li&gt;Server Status - Source Control Request Queue.rdl&lt;/li&gt;   &lt;/ul&gt;    &lt;p&gt;I have created versions of the three reports above that are functionally similar to Grant's reports, but also work with SSRS 2005. You can download my updated reports &lt;a href="http://blogs.msdn.com/dstfs/attachment/9792042.ashx"&gt;here&lt;/a&gt;. To use my reports, install Grant's TFS Performance Report Pack, and replace the three reports with the versions in the zip file I provided. &lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9800777" width="1" height="1"&gt;</content><author><name>grantholliday</name><uri>http://blogs.msdn.com/members/grantholliday.aspx</uri></author><category term="TFS" scheme="http://blogs.msdn.com/granth/archive/tags/TFS/default.aspx" /><category term="VSTS Planning &amp;amp; Tracking" scheme="http://blogs.msdn.com/granth/archive/tags/VSTS+Planning+_2600_amp_3B00_+Tracking/default.aspx" /><category term="TFS at Microsoft" scheme="http://blogs.msdn.com/granth/archive/tags/TFS+at+Microsoft/default.aspx" /><category term="Performance" scheme="http://blogs.msdn.com/granth/archive/tags/Performance/default.aspx" /></entry></feed>