In SQL Azure each database has a size limitation (adjustable). In order for my service to not suddenly come to a halt I'd like to be able to programmatically find the current maximum size and current actually used space (and generate and alert once some threshold is reached).
Looks like sp_mstablespace
can be used to solve this problem, but this stored procedure is not available in SQL Azure.
How do I find the current maximum allowed size and current actually used space in a SQL Azure database?