如何增加Azure SQL数据库分配的大小 [英] How to increase Azure SQL Database allocated size
问题描述
将azure sql从免费层升级到基本层,但数据库显示分配的大小为32MB,最大大小为2gb,我的应用程序消耗了31,这可以防止我的数据库无法进一步增长现在如何扩展分配的数据库大小。因为
它显示我当前的使用率为1.5%,但不能超过导致数据丢失的分配大小
Hello,
尝试使用以下语句增加大小限制:
ALTER DATABASE DB1 MODIFY(MAXSIZE = 2 GB);
要确定当前大小限制,请运行以下查询:
SELECT DATABASEPROPERTYEX(DB_NAME(),'MaxSizeInBytes');
希望这会有所帮助。
< p style ="line-height:normal; margin-bottom:0pt">
问候,
Alberto Morillo
SQLCoffee.com
$
upgraded azure sql from free tier to basic tier but the database shows the allocated size to be 32MB and max size 2gb and my app have consumed 31, this prevents my database cannot to grow further now how can i expand the allocated database size. since
it shows my current usage is 1.5% but can not grow beyond the allocated size that led to data loss
Hello,
Try to increase the size limit using the following statement:
ALTER DATABASE DB1 MODIFY (MAXSIZE = 2 GB);
To determine the current size limit, please run the following query:
SELECT DATABASEPROPERTYEX(DB_NAME(), 'MaxSizeInBytes');
Hope this helps.
Regards,Alberto Morillo
SQLCoffee.com
这篇关于如何增加Azure SQL数据库分配的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!