How do you force the deletion of a TFS 2010 workspace on a client when the TFS Server no longer exists?

后端 未结 3 749
一生所求
一生所求 2021-02-09 17:12

I currently have a TFS 2010 Server running on SERVER-1. On my client (MY-CLIENT) I have VS2010 running and have a workspace associating SERVER-1 with \\MY-CLIENT\\Development.

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-09 17:40

    I had exactly the same issue: After moving TFS server to another machine, I couldn't map to a local folder in VS2012 on the old machine because it was still associated with an old Workspace that TFS denied all existence of. After many hours (and days) searching Google and trying different things, none of which worked (including all the "tf" commands, deleting the local cache etc), this is how I eventually solved it:

    1. Edit the actual TFS collection database on the TFS server using SQL Management Studio Express (e.g. "Tfs_DefaultCollection")
    2. Look for the "dbo.tbl_Workspace" table and edit it
    3. You should see your "ghost" workspace(s) in here
    4. Delete the rows
    5. All is right in the world

提交回复
热议问题