首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >当数据库不存在时分离TFS项目集合

当数据库不存在时分离TFS项目集合
EN

Server Fault用户
提问于 2010-11-04 14:00:34
回答 4查看 9.1K关注 0票数 1

当我向TFS添加一个项目集合时,它在中途崩溃了。它没有为集合创建数据库。集合显示在TFS管理控制台中,但它不允许我分离它,因为它说

TF246017:无法连接到数据库。验证承载数据库的服务器是可操作的,并且网络问题没有阻塞与服务器的通信。

我该怎么摆脱这个鬼收藏呢?

EN

回答 4

Server Fault用户

发布于 2010-11-04 14:26:15

试着修复数据库

代码语言:javascript
运行
复制
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
EN

Server Fault用户

发布于 2013-07-16 11:00:11

最好的选择是使用下面的命令删除集合。

代码语言:javascript
运行
复制
syntax:TFSConfig Collection /delete /collectionName:[COLLECTION NAME]
TFSConfig Collection /delete /collectionName:Project( here project is name of the collection)

例如:

代码语言:javascript
运行
复制
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
EN

Server Fault用户

发布于 2013-08-21 18:34:27

这对我有效..。

代码语言:javascript
运行
复制
 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
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/198200

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档