|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Saturday, March 16, 2013 4:03 PM
Points: 14,
Visits: 336
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, July 01, 2010 8:11 AM
Points: 4,
Visits: 106
|
|
hi,
I've just implented the script and think the result output is awesome. However i was wondering if there was any way within the script that it would include all databases on the server instead of one at at time, and to have a history on the size since it was first created. Also is there any way it could be executed as a job, if so what do you reckon the command will be, to run this in SQL AGENT agent ie something similar to exec sp_track_db_growth "northwind" s an example
Like i said the script was and is fantabulous!!!!!!!!!!!!!!!.
CIAO vivcolli:D
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:29 PM
Points: 182,
Visits: 952
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 3:00 AM
Points: 1,151,
Visits: 879
|
|
Good article. I just found that using the floor function gave the size as 1 right through because the db that I work on is 1.6 gb so I rather used the round function and it came up tops. Thanks for a good article. Below is an example of what I did.
select BackupDate = convert(varchar(10),backup_start_date, 111), SizeInGigs=round(backup_size/1024000000,4) from msdb..backupset where database_name = 'OrisysSql' and type = 'd' order by backup_start_date desc
Manie Verster Developer Johannesburg South Africa
Life is about choices.... I choose to be happy today
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Sunday, September 25, 2011 6:50 AM
Points: 55,
Visits: 155
|
|
to apply this script to every database on the server try using this and modify the script as appropriate:
http://www.sqlservercentral.com/scripts/Metadata/65453/
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, November 06, 2012 10:04 AM
Points: 144,
Visits: 455
|
|
what about the databases which are backed up with compression method like litespeed, let say today backup is taken with native method and tommorrow backup is taken with litespeed, how do we know whther databae size is increased or not.
thanks Joseph
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 8:56 AM
Points: 718,
Visits: 1,470
|
|
How would I modify this script to show the results in MB instead of GB?
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 12:25 PM
Points: 7,
Visits: 123
|
|
use the figure 1048576 instead of 1024000000 or 1073741824.
KB = 1024 MB = 1024^2 GB = 1024^3 so on and so forth.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Wednesday, August 31, 2011 11:35 PM
Points: 298,
Visits: 57
|
|
Greate Script. Usually peopel would like to see percentage growth which is easily calulate using this script of yours. Providing the Db always gorwos in size thsi will work. - Script great Idee 
Select ((MAX(SizeInGigs) - MIN(SizeInGigs))/ MAX(SizeInGigs))*100 from ( select BackupDate = convert(varchar(10),backup_start_date, 111) ,SizeInGigs=floor(backup_size) from msdb..backupset where database_name = 'CES' and type = 'd' )TB
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Wednesday, August 31, 2011 11:35 PM
Points: 298,
Visits: 57
|
|
"""" what about the databases which are backed up with compression method like litespeed, let say today backup is taken with native method and tommorrow backup is taken with litespeed, how do we know """"
If you use percentage growth - over the time periods not compressed and compressed periods it should be more or less the same
|
|
|
|