Отсоедините Набор Проекта TFS, когда база данных не будет существовать

Необходимо попытаться запустить скрипт на "экране".

screen -D -m run1.sh

И затем можно схватить экран с:

screen -r

1
задан 4 November 2010 в 16:00
4 ответа

Попытайтесь восстановить дб

dbcc checkdb ('TfsVersionControl',repair)

как найдено на: http://dotnet.dzone.com/news/database-corruption-tfs-2005?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+zones%2Fcss+%28CSS+Zone%29

1
ответ дан 3 December 2019 в 22:22

Лучшим вариантом является удаление коллекции с помощью следующей команды.

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

Например:

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.
1
ответ дан 3 December 2019 в 22:22

This worked for me...

 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"
0
ответ дан 3 December 2019 в 22:22

Я не уверен, будет ли это иметь какой-либо побочный эффект, но у меня была такая же проблема, и я решил ее, удалив строку в таблице tbl_Database базы данных Tfs_Configuration , которая указание на отсутствующую базу данных через поле ConnectionString.

0
ответ дан 13 May 2021 в 07:36

Теги

Похожие вопросы