Hi all,
I have a TFS2012 setup and a 400GB database (tfs_DefaultCollection) which I am trying to trim down as much as possible prior to an upgrade to 2015 and the fact I don't want to keep buying more space! I have ran the Attachment cleaner tool that has informed me it has deleted 200GBs of data. After this and querying the largest tables the row counts are the same and sizes haven't changed and shirnk the database only released 19GBS. The mdf file size remains the same and so does the top four tables, (tbl_FunctionCoverage, tbl_TestResult, tbl_BuildInformation and tbl_Content) see below. I have executed prc_DeleteUnusedContent and prc_DeleteUnUsedFiles suggested on couple of articles I have read with no luck.
Tables in Question (Data is in MBs):
NameRows ResversedDataIndexUnused
Name Rows Reserved Data Index Unused
tbl_FunctionCoverage 168335589 87206.7 86603.27 584.08 19.35
tbl_TestResult 54065423 78621 42191.93 36120.58 308.49
tbl_Content 1177404 78468.05
78330.91 20.02 117.13
tbl_BuildInformation 37840866 70744.7366415.51 4274.01 55.22
I am assuming all largest tables revolve around builds and the output. A vast marjority (porbably +90%) of the builds in tlb_Build are marked as deleted.
I apreciate any suggestions on how to deal with this and preventing from happening again!
Thanks
Sj