Results 1 to 6 of 6

Thread: Database & File Growth Monitoring

  1. #1
    Join Date
    Feb 2004
    Location
    canada
    Posts
    25

    Question Database & File Growth Monitoring

    Can someone point me to examples of database & file growth monitoring.

    I specificially want to monitor a number of separate SQL servers (2000, 7.0)

    I want to end of with statistics of any size changes on any of these over time.

    Help is greatly appericated..

    thanks

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    You can write script to chech db and file size, and save the result in table. Then schedule to run the script.

  3. #3
    Join Date
    Feb 2004
    Location
    canada
    Posts
    25
    do u have the written script with you? if so do u mind to pass it on to me please..

    thanks

  4. #4
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Actually I am writing an article on this. But here is sneak preview of the base concept behind it.


    set quoted_identifier on
    go
    create table #dbsizemonitor (servername varchar(128), name varchar(128), filename varchar(1000),Size int)
    go
    sp_msforeachdb "insert into #dbsizemonitor(Servername,name,filename,size) select @@servername,name,filename,size from ?.dbo.sysfiles"
    go
    select * from #dbsizemonitor
    go

  5. #5
    Join Date
    Feb 2004
    Location
    canada
    Posts
    25
    Hi Mak,

    Your query give the file size of the data and log file..

    what i need is actual data size. Is that possible help is very much appericated..

    thanks

    jessie.

  6. #6
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •