How to check if my SQL Server Express database exceeds the 10 GB size limit?
问题 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 to wiki, the SQL Server Express edition has a 10 GB size limit. When I insert data and reach the limit, what exception will be thrown? Or, how do I detect the approaching limit problem by codes ? I use EF 5 with code-first approach to insert large data set. 回答1: In tests I have seen that: sp_spaceused won't work as expected, it