script - growing database.

  • Friends,

    someone could share with me a script that calculates the growth of a database and store on table? weekly and monthly?

  • This will give you the current size of the database;

    select SIZE AS '8k PAGES' FROM sys.database_files WHERE TYPE = 0

    run this as a select, inserting the output into a table.

    Then to do what you want to do, set up a job and run at your desired time(s)

    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]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply