Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 How to check history of database size month wise?
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 02/06/2014 :  01:32:45  Show Profile  Reply with Quote
I have created a database in Dec, 2012 now the size of database is 1 TB. Now we want to add more resources but before this we want to know that last 1 year what is the size of DB in each month.

Aged Yak Warrior

737 Posts

Posted - 02/06/2014 :  07:19:01  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
If you are performing regular backups,this might give the database backup sizes moth wise
[database_name] AS "Database",
DATEPART(month,[backup_start_date]) AS "Month",
AVG([backup_size]/1024/1024) AS "Backup Size MB",
AVG([compressed_backup_size]/1024/1024) AS "Compressed Backup Size MB",
AVG([backup_size]/[compressed_backup_size]) AS "Compression Ratio"
FROM msdb.dbo.backupset
WHERE [database_name] = ''
AND [type] = 'D'
GROUP BY [database_name],DATEPART(mm,[backup_start_date]);

Also check this one:
Javeed Ahmed

Edited by - ahmeds08 on 02/06/2014 07:20:30
Go to Top of Page

Starting Member

2 Posts

Posted - 02/07/2014 :  02:09:20  Show Profile  Reply with Quote
Thanks ahmeds08. i have found a better script please visit at
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000