Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading SQL Azure database size

I'm currently in the middle of developing an application loosely similar to StackOverflow (question / answer based)

Initially, I was using AWS (simple db and s3) for storage, however that posed several problems, and i've opted to go with SQL - With a view to eventually hosting on SQL Azure.

I was just wondering, if i opted for the 1gb database initially, could I increase the size to the 5gb / 10gb databases later on? Or would I have to create a separate new database of this size, and port my data over?

like image 824
Alex Avatar asked Jul 27 '10 22:07

Alex


People also ask

How do I increase the size of my SQL database?

Expand Databases, right-click the database to increase, and then click Properties. In Database Properties, select the Files page. To increase the size of an existing file, increase the value in the Initial Size (MB) column for the file. You must increase the size of the database by at least 1 megabyte.

What happens when 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.

How do I update my Azure SQL Database?

To upgrade a database use the Database Scale tab in the Azure management portal. Simply select the desired service tier and performance level and then click Save. The database will stay online throughout the upgrade operation, with only a brief disconnect/reconnect occurring at the end in some cases.

What is the maximum size of an SQL database in Azure?

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.


2 Answers

See my answer on this other SO question. In a nutshell, you modify db size with T-SQL, such as:

ALTER DATABASE MyDatabase MODIFY (EDITION='WEB', MAXSIZE=5GB)
like image 167
David Makogon Avatar answered Sep 19 '22 13:09

David Makogon


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.

Tada

like image 44
Dave Gordon Avatar answered Sep 18 '22 13:09

Dave Gordon