TFS 2018:TF30042:数据库已满



收到此错误。。。

TF30042: The Database is Full. Contact your Team Foundation Server administrator.
Error:1101, Message: could not allocate a new page for database 'Tfs_DefaultCollection' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to filegroup, or setting autogrowth on for existing files in the filegroup.

如何增加TFS 2018数据库的大小?没有UI来检查服务器上的大小和所有内容如何通过命令行更改数据库配置?

TFS没有提供任何工具来更改文件。但是任何SQL Server管理工具都可以工作。我通常使用SQL Server management studio来直接更改数据库文件,或者生成脚本来更改文件大小。

使用sqlcmd,您可以打开与TFS服务器存储其所有数据的数据库的交互式会话。然后,您可以发出ALTER DATABASE语句来更改数据库的最大大小。

ALTER DATABASE tfs_defaultcollection
MODIFY FILE  
(
NAME = PRIMARY,  
SIZE = 50MB
);  

将上面语句中的新大小设置为足够大。或者,通过设置SIZE = UNLIMITED启用自动增长。

最新更新