I am wondering if there is a way to figure out the maximum allowed size for the database using a query in SQL Server? As we know, the limit is 4GB for SQL Server 2005-2008 Express and 10GB for SQL Server 2008 R2 Express. I don't want to hard-code these limits, I want to be able to run a query to determine these limits.
We have a method that checks if the database is approaching the limit (if it's an Express version) and warn about it if it does.
Thanks a lot in advance.
PluralSight Learning Library
We have a method that checks if the database is approaching the limit (if it's an Express version) and warn about it if it does.
Thanks a lot in advance.
PluralSight Learning Library