An easy way to track the growth of your database  

Posted by Sandesh Segu in

Twit This! Share this in Google Reader Share/Save/Bookmark Subscribe

Create Proc GTrack (@DBName varchar(40))
AS
Select @DBName as [Growth Track of database]
Select BackupDate = convert(varchar(10),backup_start_date, 111) ,SizeInGigs=floor( backup_size/1024000000) from msdb..backupset where database_name = @DBName and type = 'd' order by backup_start_date desc


--EXEC GTrack 'PUBS'

This entry was posted on Monday, June 16, 2008 at Monday, June 16, 2008 and is filed under . You can follow any responses to this entry through the comments feed .

0 comments

Post a Comment

Place Your Ad Here

To Block this Place for your ad Contact Me @

Contact Me

Footer Ad

Visitors