如何计算 SQL Azure 数据库的当前大小?(不是最大尺寸限制)
几个地方(像这样)建议使用这个sql:
SELECT SUM(reserved_page_count) * 8192
FROM sys.dm_db_partition_stats
但是,当以管理员登录名执行此操作时,出现此错误:
Msg 297, Level 16, State 1, Line 1
The user does not have permission to perform this action.