get size of MSDE db

  • Hi Everybody,

    I'd like to get the size of my database (MSDE) before it hits the 2GB limit.

    If I run sp_spaceused what counts for the limit? 'reserved' or just 'data'?

    For sure not the whole 'database_size' because of the log size it contains - this does not count for the 2GB limit...

    Thanks in advance

    TomY

     

  • This was removed by the editor as SPAM

  • Nobody can help?!

  • you can use this simple query

     

    use

    msdb

    select name,

    size*8/1024.0 as 'Size(MB)',

    FILEPROPERTY(name,'SpaceUsed')*8/1024.0 as 'Used(MB)'

    from

    sysfiles

     

     

    hope this helps

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

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