DB Size

  • Why is the database size different than the physical file size? The general page of the database show 12000MB. If I browse to the location of the MDF, it is 8192000KB. Why don't these match? This is an example DB, the rest of my DB's are the same, but not quite as much of a discrepancy.

    Thanks,

  • The database size in the database properties window includes the log file size.

    John

  • Cool Thank you! So does the space available include both as well? How do I find the free of each individually?

    Thanks,

  • I've got a feeling the free space only tells you what's in the data file. Have you tried sp_spaceused?

    John

  • The easiest way is probably to look at the Disk Usage report in SSMS. You can access it by right clicking on the database in question, selecting reports, standard reports and Disk Usage. It provides you detailed information about how large each data file is and how much of that space is used.

  • Not yet. But I did. Looks like it is only the free space of the data. I also found a space report. I just took over these servers. I had to move this DB from a failed server. When I restored it, it looks like the initial sizes were set to 8GB (DB) and 4GB(log). But it looks like they are only using 1.5GB and 200 MB. The database is not expected to grow that large. Would you recommend shrinking in this case?

  • Thanks George. I was in the middle of reviewing that report.

Viewing 7 posts - 1 through 6 (of 6 total)

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