Track all DB Growth for the Server

  • 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,

  • 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_/

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • 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.

  • 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.

  • 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