How can I calculate the current size of a SQL Azure Database? (Not the maximum size limit)
Several places (like this) suggest using this sql:
SELECT SUM(reserved_page_count) * 8192
FROM sys.dm_db_partition_stats
However when executing this as the Administrator login I get this error:
Msg 297, Level 16, State 1, Line 1
The user does not have permission to perform this action.