to view space in mdf file

  • Hi

    We have the dbcc sqlperflog(logspace) to view the used and free space in transaction logs. But how do we see the used and free space in the data files(mdf and ndf).

    Sp_helpdb only gives me the size of the database but I would like to see the used and available free space(like we  have the taskpad view in enterprise manager).

     

  • There is no command to get this other than DBCC showfilestats ...

    Use DBCC showfilestats to get the total  and used extents for a database and then calculate the space.

    MohammedU
    Microsoft SQL Server MVP

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

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