Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Azure: What will happen if size of my SQL Azure get 5GB?

I need to know what will happen when a database in SQL Azure exeeds its size. For example I defined a 1GB database and this is going over its size limit. Will it change to a 5GB database?

like image 617
Artyom Avatar asked Jul 15 '10 10:07

Artyom


People also ask

What happens when the SQL Azure database reaches max size?

When data space used reaches the maximum data size limit, either at the database level or at the elastic pool level, inserts and updates that increase data size fail and clients receive an error message. SELECT and DELETE statements remain unaffected.

What is the maximum database size in Azure SQL?

Data storage limits in Azure SQL Database have increased from 1.5 TB to 2 TB for single databases and elastic pools configured with 8 and 10 vcores. Workloads requiring up to 2 TB storage can now reduce costs by not having to increase the compute size beyond 8 vcores.

How do I increase the size of my SQL database in Azure?

You can also change the size of the database through the Azure SQL portal. Simply choose the database and go to the scale tab and select the size you want.

What is the maximum amount of time that you can retain a backup of Azure SQL DB?

With Azure SQL Database, you can set a long-term backup retention policy (LTR) to automatically retain backups in separate Azure Blob storage containers for up to 10 years. You can then recover a database using these backups using the Azure portal, Azure CLI, or PowerShell.


1 Answers

You won't be able to go over 1GB unless you specifically allow for it. You'll actually get an error code when attempting to go beyond 1GB.

To increase max size, execute this T-SQL: ALTER DATABASE MyDatabase MODIFY (EDITION='WEB', MAXSIZE=5GB)

For more info about altering database sizes, see this blog post.

like image 188
David Makogon Avatar answered Sep 22 '22 12:09

David Makogon