Report

  • i need to prepare the Capacity Report fro all the servers includes the total disc space , used space and free space and how much the db growth as monthly wise .

    can any one suggest how to gather the details and also send me the script for this .

    Appreciate ur help on this .

  • select

    a.FILEID,

    [FILE_SIZE_MB] =

    convert(decimal(12,2),round(a.size/128.000,2)),

    [SPACE_USED_MB] =

    convert(decimal(12,2),round(fileproperty(a.name,'SpaceUsed')/128.000,2)),

    [FREE_SPACE_MB] =

    convert(decimal(12,2),round((a.size-fileproperty(a.name,'SpaceUsed'))/128.000,2)) ,

    NAME = left(a.NAME,15),

    FILENAME = left(a.FILENAME,30)

    from

    dbo.sysfiles a

    Results:

    FILEID FILE_SIZE_MB SPACE_USED_MB FREE_SPACE_MB NAME FILENAME

    ------ -------------- -------------- -------------- --------------- ------------------------------

    1 2.94 2.88 .06 Northwind D:\MSSQL\DATAorthwnd.mdf

    2 1.00 .46 .54 Northwind_log D:\MSSQL\DATAorthwnd.ldf

  • thanks for sending i want all the databases in percentage growth instead of getting one db result .

  • ramyours2003 (12/20/2011)


    thanks for sending i want all the databases in percentage growth instead of getting one db result .

    What have you done so far?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

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

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