The size of the TfsVersionControl database is not reduced as much as expected when you run the "tf destroy" command in Microsoft Visual Studio 2008 Team Foundation Server

Article translations Article translations
Article ID: 974596 - View products that this article applies to.
 
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario in a Microsoft Visual Studio 2008 Team Foundation Server (TFS) environment:
  • You run the tf destroy command in TFS version control to reduce the size of the TfsVersionControl database.
  • During the Delete Unused Content step of the TfsVersionControl Administration job, the job fails or the job is interrupted.
In this scenario, the objects in the tf destroy command disappear from Source Control Explorer. However, the size of the TfsVersionControl database is not reduced as much as expected.

CAUSE

This problem occurs because orphaned rows are generated in the version control tables. This happens only when all the following conditions are true:
  • The rows of objects are deleted from the tbl_File table, but are not deleted from the tbl_Content table.
  • The delete operations are not in a transaction.

RESOLUTION

To download this hotfix from the MSDN Code Gallery, visit the following Microsoft website:
http://code.msdn.microsoft.com/KB974596

Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language listed, it is because the Code Gallery resource page is not available for that language.

Or, you can download this hotfix from the following Microsoft Connect website:
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=34302

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have Microsoft Visual Studio 2008 Team Foundation Server Service Pack 1 (SP1) installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix if no instance of Visual Studio is being used.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.teamfoundation.client.dll9.0.30729.4439458,75212-Nov-200913:40x86
Microsoft.teamfoundation.common.dll9.0.30729.4439331,77612-Nov-200913:40x86
Microsoft.teamfoundation.databaseinstaller.dll9.0.30729.44394,399,10412-Nov-200913:40x86
Microsoft.teamfoundation.dll9.0.30729.44391,060,86412-Nov-200913:40x86
Microsoft.teamfoundation.officeintegration.common.dll9.0.30729.4439327,68012-Nov-200913:40x86
Microsoft.teamfoundation.officeintegration.excel.dll9.0.30729.4439245,76012-Nov-200913:40x86
Microsoft.teamfoundation.officeintegration.project.dll9.0.30729.4439159,74412-Nov-200913:40x86
Microsoft.teamfoundation.server.admin.dll9.0.30729.4439163,84012-Nov-200913:40x86
Microsoft.teamfoundation.testmanagement.client.dll9.0.30729.4439552,96012-Nov-200913:40x86
Microsoft.teamfoundation.testmanagement.clientpackage.dll9.0.30729.443965,53612-Nov-200913:40x86
Microsoft.teamfoundation.testmanagement.clientpackageui.dll9.0.30729.443912,20812-Nov-200913:40x86
Microsoft.teamfoundation.testmanagement.common.dll9.0.30729.443928,67212-Nov-200913:40x86
Microsoft.teamfoundation.testmanagement.controller.dll9.0.30729.443957,34412-Nov-200913:40x86
Microsoft.teamfoundation.testmanagement.controls.dll9.0.30729.4439319,48812-Nov-200913:40x86
Microsoft.teamfoundation.versioncontrol.client.dll9.0.30729.4439516,09612-Nov-200913:40x86
Microsoft.teamfoundation.versioncontrol.common.dll9.0.30729.4439249,85612-Nov-200913:40x86
Microsoft.teamfoundation.versioncontrol.common.integration.dll9.0.30729.443932,76812-Nov-200913:40x86
Microsoft.teamfoundation.versioncontrol.controladapter.dll9.0.30729.443940,96012-Nov-200913:40x86
Microsoft.teamfoundation.versioncontrol.controls.dll9.0.30729.44393,121,15212-Nov-200913:40x86
Microsoft.teamfoundation.workitemtracking.client.cache.dll9.0.30729.44391,336,83212-Nov-200913:40x86
Microsoft.teamfoundation.workitemtracking.client.datastore.dll9.0.30729.44391,481,21612-Nov-200913:40x86
Microsoft.teamfoundation.workitemtracking.client.querylanguage.dll9.0.30729.443961,44012-Nov-200913:40x86
Microsoft.teamfoundation.workitemtracking.client.ruleengine.dll9.0.30729.4439392,19212-Nov-200913:40x86
Microsoft.teamfoundation.workitemtracking.controls.dll9.0.30729.4439659,45612-Nov-200913:40x86
Microsoft.visualstudio.qualitytools.linking.dll9.0.30729.443969,63212-Nov-200913:40x86
Microsoft.visualstudio.qualitytools.operationalstore.clienthelper.dll9.0.30729.4439106,49612-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.teamexplorer.dll9.0.30729.4439671,74412-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439181,66412-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439181,68012-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439182,17612-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439182,19212-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439182,68812-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439182,70412-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439183,20012-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439183,21612-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439185,26412-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll9.0.30729.4439765,95212-Nov-200913:40x86
Microsoft.visualstudio.teamfoundation.workitemtracking.dll9.0.30729.4439286,72012-Nov-200913:40x86
Microsoft.visualstudio.teamsystem.integration.dll9.0.30729.4439208,89612-Nov-200913:40x86
Tfsadminutil.exe9.0.30729.443967,41612-Nov-200913:40x86
Tfsprovider.dll9.0.30729.44392,699,60812-Nov-200913:40x86
Tsofficeshim.dll9.0.30729.4439199,00812-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443981,24812-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443981,74412-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443982,27212-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443982,78412-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443984,32012-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443985,32812-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443985,84012-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443985,85612-Nov-200913:40x86
Tsofficeshimui.dll9.0.30729.443986,35212-Nov-200913:40x86

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 974596 - Last Review: March 7, 2011 - Revision: 6.0
APPLIES TO
  • Microsoft Visual Studio Team System 2008 Team Foundation Server Service Pack 1
Keywords: 
kbexpertiseadvanced kbsurveynew kbqfe KB974596

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com