I have a database in SQL Server 2008 that is growing all the time, and I'd like to know which tables have caused the most growth over the past 6 months.
Sql-server – How to determine which tables are causing the database to grow over time
sql serversql-server-2008
Related Question
- Sql-server – How to find out the activity which increasing the response time of the Sql Server
- Sql-server – How to determine the size of a SQL Server database for a specific date in the past
- Sql-server – How to reliably track stored procedure ( and functions ) use over time
- Sql-server – somehow ignore uncomitted transactions which are causing the database to go into recovery
- Sql-server – Estimate projected database growth
- Sql-server – Determining which SQL Server tables are accessed over a week
- SQL Server – Causes of Sudden Database Growth in .mdf File
Best Answer
SQL Server doesn't track this information. You'd need some kind of monitoring (whether it be a tool or home-grown) that keeps snapshots of table space over time, going forward. This can be simple or complex:
sys.dm_db_partition_stats
;Short of having already implemented one or more of these methods, or someone inventing a time machine, there's not really any good way to figure out how big a table was 6 months ago, or two weeks ago, or 20 minutes ago.