Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

View the current size of a database?

tansey's Avatar

tansey

20 Feb, 2011 07:52 PM

Is there any way to view the current size of my application's database?

  1. Support Staff 1 Posted by rune on 20 Feb, 2011 08:25 PM

    rune's Avatar

    Hi,

    you could use sp_spaceused if you're on MsSql http://msdn.microsoft.com/en-us/library/ms188776.aspx .

    On MySQL you can use something like

    SELECT table_schema "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB" 
    FROM information_schema.TABLES GROUP BY table_schema;
    

    We might integrate it in the frontend too!

    Best regards,
    Rune

  2. rune closed this discussion on 20 Feb, 2011 08:25 PM.

  3. tansey re-opened this discussion on 21 Feb, 2011 12:09 AM

  4. 2 Posted by tansey on 21 Feb, 2011 12:09 AM

    tansey's Avatar

    Thanks Rune. I'm not familiar with MS SQL at all. How do I execute that command on my database?

  5. Support Staff 3 Posted by rune on 21 Feb, 2011 07:01 AM

    rune's Avatar

    Just like a regular query in SMSS - if you use that?

  6. 4 Posted by tansey on 22 Feb, 2011 02:53 AM

    tansey's Avatar

    Got it, thanks Rune! That was the first time I've ever used SMSS actually.

  7. tansey closed this discussion on 22 Feb, 2011 02:53 AM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac