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

后端 未结 5 1768
感动是毒
感动是毒 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:27

    To check the database size query:

    sys.databases
    

    Just query this, perhaps with C# or if you use SSMS (sql server management studio) shell, you can schedule a job that emails you or whatever you want.

    Example: SQL Server 2008: How to query all databases sizes?

    Edit: NOT sure if error is thrown, it should log to event log or a sql log...

    Side note: Developer version is only $50 and holds same as Datacenter which hold 524 PB http://technet.microsoft.com/en-us/library/cc645993%28v=sql.105%29.aspx

提交回复
热议问题