Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: How to check database size when it is offline in sql server 2005

    I realise this thread is old but it is still worth answering.

    The below query will give you the space of offline databases.

    SELECT

    DB_NAME(db.database_id) as [DB Name],

    CONVERT(DECIMAL(6,3),SUM((CONVERT(DECIMAL(20,5),mf.size)*8)/1048576)) as [DB Size in GB]

    FROM

    sys.databases...

Viewing post 1 (of 1 total)