Need script to calc all DB Sizes on a SQL Server

  • Does anyone have a script which will calculate ALL DB sizes (preferrably Allocated & Utilized) for a single SQL Server 2000 server?

    thx in advance -

    BT
  • Try the following script.

    sp_msforeachdb 'use ? execute sp_spaceused'

    Thanks,

    SR

     

     

    Thanks,
    SR

  • thx --exactly what I was looking for!

    BT

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

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