是否有关于如何处理sql azure配额限制的最佳做法?也许某种自动增加?
答案 0 :(得分:2)
您可以使用以下查询识别图层的大小限制:
SELECT Edition = DATABASEPROPERTYEX('db1', 'EDITION'),
ServiceObjective = DATABASEPROPERTYEX('db1', 'ServiceObjective'),
MaxSizeInBytes = DATABASEPROPERTYEX('db1', 'MaxSizeInBytes');
然后,您可以监视运行以下查询的数据库的当前数据库大小
select sum(reserved_page_count) * 8.0 / 1024 as "size in MB" from sys.dm_db_partition_stats
您可以发出一个ALTER DATABASE语句来扩展该层,如下所示:
ALTER DATABASE [db1] MODIFY (EDITION = 'Premium', MAXSIZE = 1024 GB, SERVICE_OBJECTIVE = 'P15');