Results 1 to 4 of 4

Thread: query to see total database space and used space

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    query to see total database space and used space

    Hi I host my site and sql server database on godaddy, they told me that I have 200MB of Database space. But I am trying to query it using the sql query analyzer to see that total space *200MB*, but I don't know what the query would be? and also the query to see how much space I have used so far?

    This is for Sql server 2005

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: query to see total database space and used space

    Execute the sp_spaceused system stored procedure.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: query to see total database space and used space

    I only see database_size, is that the amount of space that my db is using now? how about the total size that i want to see 200MB

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: query to see total database space and used space

    The database system is unlikely to be able to tell you that, as the limit is on the file system and could be done in a variety of different ways) rather than the database.

Posting Permissions

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



Click Here to Expand Forum to Full Width