Finding database file growth for last one year

  • Please tell me the script to get the growth of the all database file(mdf and ldf) for lat one year

  • it's not stored anywhere , i think; I believe you'll have to find a year old backup and compare that to todays backup.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Though not an exact match - you can also query backup sizes from msdb and get a feel for the growth over the past year. That is, if you have not cleaned out that data.

    Otherwise, you will have to do as Lowell said if you are not trapping the information.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

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

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