How to check if my SQL Server Express database exceeds the 10 GB size limit?

后端 未结 5 1772
感动是毒
感动是毒 2021-02-06 14:38

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

5条回答
  •  温柔的废话
    2021-02-06 15:16

    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.

提交回复
热议问题