SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Monitor Database Growth

By Brandie Tarvin-25024565, 2007/05/16

Total article views: 18916 | Views in the last 30 days: 270

This code provides a way of monitoring the growth of all your databases within a single instance. The first part is the creation of a monitoring table with the initial load of current databases and sizes. The second part is the SQL that can be put in a scheduled job to automate the growth monitoring.

It is recommended that this job is run weekly or monthly, depending on how fast your databases grow. Also, the code was written for SQL 2005 but can easily be altered for SQL 2000 by changing sys.Master_Files to sysaltfiles and sys.databases to sysdatabases. Make sure to change your column names appropriately if you make this alteration!

By Brandie Tarvin-25024565, 2007/05/16

Total article views: 18916 | Views in the last 30 days: 270
Your response
 
 
Related Articles
FORUM

Monitor SSAS database size

Monitor SSAS database size

FORUM

Database Monitoring System

Monitoring mulitple platforms and databases

FORUM

database mirroring monitor - remove server or database

database mirroring monitor - remove server or database

FORUM

how are you monitoring database growth?

how are you monitoring database growth?

FORUM

Lanuch database mirroring monitor does not appear

sql server 2005 std edition. launch database mirroring monitor

 
Contribute

Free registration required...

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Login (existing users)

Login

Email:   Password:   Remember me: Forgotten your password?

Register (new users)

Register

Email:   Password:
Confirm:

Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

Steve Jones
Editor, SQLServerCentral.com