I am developing a web site, it uses SQL Server 2008 R2 Express for its database. And in testing, there is a lot of data and images stored into this database.
According t
To Check the Size of the Database Two Ways:
/* new school way - data plus log and run in the local db that you want to see here you can see the log and the mdf file. */ SELECT size*8.0/1024.0 as size_in_gb, * FROM sys.database_files GO
/* old school way, run for all db size*/ sp_helpdb
FYI - the MDF and NDF files are the only ones that attribute to the file size exceeding 10GB.