SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Track all DB Growth for the Server


Track all DB Growth for the Server

Author
Message
poratips
poratips
Say Hey Kid
Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)

Group: General Forum Members
Points: 666 Visits: 666
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,
bitbucket-25253
bitbucket-25253
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15753 Visits: 25280
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

Before posting a performance problem please read
poratips
poratips
Say Hey Kid
Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)Say Hey Kid (666 reputation)

Group: General Forum Members
Points: 666 Visits: 666
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.
homebrew01
homebrew01
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12364 Visits: 9222
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.



jeetsingh.cs
jeetsingh.cs
Mr or Mrs. 500
Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)Mr or Mrs. 500 (565 reputation)

Group: General Forum Members
Points: 565 Visits: 618
You can use
sysfiles to come up with a procedure
where you can get notification for your database growth.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search