Desanexe uma coleção de projetos do TFS quando o banco de dados não existe

1

Quando adicionei uma coleção de projetos ao TFS, ela caiu no meio do caminho. Não criou o banco de dados para a coleção. A coleção é exibida no Admin Console do TFS, mas não me permite desanexá-lo porque diz

TF246017: O Team Foundation Server não pôde se conectar ao banco de dados. Verifique se o servidor que está hospedando o banco de dados está operacional e se os problemas de rede não estão bloqueando a comunicação com o servidor.

Como faço para me livrar dessa coleção fantasma?

    
por James Helms 04.11.2010 / 15:00

3 respostas

1

Tente reparar o db

dbcc checkdb ('TfsVersionControl',repair)

como encontrado em: link

    
por 04.11.2010 / 15:26
0

A melhor opção é excluir a coleção usando o comando abaixo.

syntax:TFSConfig Collection /delete /collectionName:[COLLECTION NAME]
TFSConfig Collection /delete /collectionName:Project( here project is name of the collection)

Por exemplo:

C:\Users> cd..

C:\> cd Program Files\Microsoft Team Foundation Server 2010\Tools

C:\Program Files\Microsoft Team Foundation Server 2010\Tools> TFSConfig Collection /delete /collectionName:Project
Logging sent to file C:\ProgramData\Microsoft\Team Foundation\Server Configuration\Logs\CFG_TPC_AT_0710_134506.log
Command: collection
TfsConfig - Team Foundation Server Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
Deleting a Team Project Collection is an irreversible operation. A deleted collection can not be reattached to the same or another Team Foundation Server. Are you sure you want to delete 'Project'? (Yes/No) y
Found Collection 'Project'. Deleting...
The delete of collection 'Project' succeeded.
    
por 16.07.2013 / 13:00
0

Isso funcionou para mim ...

 1. Actions to perform on TFS 2010
   1.1 Using the TFS console "Detach" the collection from the "TFS server"

   1.2 Using the SQl Manager "Detach" the database for the corresponding TFS 
       collection



 2.  Actions to perform on TFS 2012
   2.1 Using the SQl Manager "attach" the database for the corresponding TFS 
       collection

   2.2 Make sure to give the TFS user account/s access to the database otherwise 
       the TFS server will not be able to access it.

   2.3 Using the TFS console "attach" the collection to the "TFS server"
    
por 21.08.2013 / 20:34