TFS GIT 获取完整错误 TF30042。 tbl_content已满

TFS GIT getting full Error TF30042. tbl_content is full

我们是 运行 我们在 TFS 中使用 Git 的项目。最近开始报错

TF30042: The database is full. Contact your Team Foundation Server administrator. Server: ATSS-P-AAI\SqlExpress01, Error: 1105, Message: 'Could not allocate space for object 'dbo.tbl_Content'.'PK_tbl_Content' in database 'Tfs_DefaultCollection' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

我查看了一下,发现tbl_content本身占用了space的9.5GB左右,而总的DB大小是10GB。在此之前,我的一位队友错误地签入了包含大量二进制文件的存储库。他已经删除了存储库,但似乎 tbl_content 仍然具有相同的 space。

我也尝试设置 autogrowth,但似乎没有任何效果。我们现在不能再使用它了。

提出了任何解决方案。

这是因为您使用的是 SQL Express。 SQL Express 仅限于最大 10 GB 的数据库。

这里的简单答案是您应该升级 SQL 版本。可以从数据库中删除数据,但不建议在没有 Microsoft 明确指示的情况下这样做。

autogrowth 中的受限文件增长在您的情况下不起作用。由于10GB的限制来自SQL Express大牛提到的。

SQL Server Express: Limitations of the free version of SQL Server

The most important limitation is that SQL Server Express does not support databases larger than 10 GB. This will prevent you from growing your database to be large.

你目前能做的事情:

  1. 清理驱动器以释放空间 space。删除事务日志、查找无关的测试用例附件、构建滴检查到源之类的东西。

  2. 恢复您之前的备份数据库

  3. 改用 SQL 服务器标准