I'm trying to determine the correct way to get the size that applies to the limits for sql express. I believe that 2005 has a 4GB limit on data and log sizes; 2008 has a 10GB limit only on data size.
When I execute sp_spaceused (with null database name to get summary) the first result set shows 'database_size'. Is this the value that applies to the limit for sql express 2005? The second result shows 'data'. Is this the value that applies to the limit for sql express 2008?