How to shrink TFS database size

前端 未结 3 1622
囚心锁ツ
囚心锁ツ 2021-01-05 01:24

We have a TFS2010 environment. The size is growing every week for a long time now.

We deleted a lot of old branches and team projects. We also used the test attachm

3条回答
  •  佛祖请我去吃肉
    2021-01-05 02:29

    One more advice I found when faced with a similar problem is to prevent the LDF file from growing back by changing the recovery mode of the table to 'simple'.

    First of all, shrink the LDF file. I did it using the SQL management studio.

    After shrinking the DB and making sure the TFS still works, follow the instructions here: stop-sql-server-transaction-log-ldf-files-from-growing-indefinitely.

    This will cause the SQL server to reduce the amount of recovery data that is being saved to the transaction log so that you won't need to repeat the shrink operation every X month.

提交回复
热议问题