Size of all databases with create date

  • How do i get this with a simple query.

  • SELECT

    db.name,

    db.create_date,

    sum(mf.size*8) AS SizeInKB

    FROM

    sys.databases db

    INNER JOIN

    sys.master_files mf

    ON

    db.database_id = mf.database_id

    GROUP BY

    db.name,

    db.create_date

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

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