Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    3

    Unanswered: How to check DB sizes?

    Hi there

    I hope this isn't a totally stupid question, but I was wondering how to check the physical size the DBs take up on disks...

    Does MSSQL save DBs as a specific file-extension? Is there an SQL command I can run that will give extensive info on DB sizes?

    Any help welcome


    Thanks!

  2. #2
    Join Date
    Jun 2003
    Posts
    269

    Thumbs up

    Code:
    -- For all db--------
    exec sp_helpdb
    or
    EXEC sp_databases
    -----For a particular db-------
    exec sp_helpdb 'databaseName'
    Last edited by mallier; 01-18-06 at 05:07.
    I love cursor,though I never use it.Cos' I dont want to misuse it.
    ----------------------------------------------

    ----cheers
    ----http://mallier.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •