February 6, 2013 at 3:34 pm
Hi,
I would like to store the database growth (Data file size + Index Siie) into a table and send an email?
Could you please guide me how can i handle this for my all database?
I would like to create table like:
Server name, Database, IndexSize, DatafileSize, Total Size, CollectionTime.
I am planning to create DBTrack DB and i will create Table with above columns but need to know how can i handle whole proces
Thanks,
February 6, 2013 at 7:13 pm
I use this to track when my system starts up ... might give you an idea on a method of doing what you desire to do.
http://www.sqlservercentral.com/blogs/briankmcdonald/2010/10/16/when-was-sql-server-restarted_3F00_/
February 7, 2013 at 8:53 am
Thanks.
Actually i am looking for Database Growth so i can verify that how the growth is going everyday or weekly basis by captuiring timestamp and Datafile, Index size.
Thanks.
February 7, 2013 at 2:27 pm
I used to track it by using the backup history, which includes the database size. Since I took daily backups, and did not delete full backup history, it was good enough for my purposes and did not require any extra development or jobs to implement. Just run some queries against the existing system tables.
I think there are a number of articles & posts on the topic that might give you the type of solution you want.
February 8, 2013 at 6:08 am
You can use
sysfiles to come up with a procedure
where you can get notification for your database growth.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply