Accounts and Billing in Windows Azure SQL Database
When you use Microsoft Windows Azure SQL Database, you can store data in the way that best suits the size and needs of your business. Billing in SQL Database is on a graduated rate based on usage of the database, so you can start with a small investment and add space as your business grows. SQL Database provides two different database editions: Web and Business. Unlike on-premise SQL Server, where edition features apply an individual instance, SQL Database edition features apply to the individual database. So, you can mix and match different database editions within the same SQL Database server.
SQL Database Editions
SQL Databases are available in two editions: the Web Edition Database and the Business Edition Database. Both editions offer scalability, automated high availability, and self-provisioning.
-
The Web Edition Database is best suited for small Web applications and workgroup or departmental applications. This edition supports a database with a maximum size of 1 or 5 GB of data.
-
The Business Edition Database is best suited for independent software vendors (ISVs), line-of-business (LOB) applications, and enterprise applications. This edition supports a database of up to 150 GB of data, in 10GB increments up to 50GB, and then 50 GB increments.
Both editions charge an additional bandwidth-based fee when the data transfer includes a client outside the Windows Azure platform or outside the region of the SQL Database.
You specify the edition and maximum size of the database when you create it; you can also change the edition and maximum size after creation. When you create a new database by using Transact-SQL, the MAXSIZE clause of the CREATE DATABASE statement sets a limit on how large the database can grow. If the database reaches the MAXSIZE limit, you will receive an error and you cannot add data to the database until you delete data or increase the MAXSIZE.
When you want to change the edition or MAXSIZE of your database after creation, use the MODIFY clause of the ALTER DATABASE statement. Once you do this, billing will be based on the new edition type (and the peak size the database reaches, daily).
Billing
A monthly fee is charged for each SQL Database user database that is utilized (master databases do not incur charges). Following are the charges for the SQL Database:
| Database Size | Price Per Database Per Month |
|---|---|
|
0 to 100 MB |
Flat $4.995 |
|
100 MB to 1 GB |
Flat $9.99 |
|
1 GB to 10 GB |
$9.99 for first GB, $3.996 for each additional GB |
|
10 GB to 50 GB |
$45.954 for first 10 GB, $1.998 for each additional GB |
|
50 GB to 150 GB |
$125.874 for first 50 GB, $0.999 for each additional GB |
The database fee is amortized over the month and charged daily. The daily fee depends on the peak size that each database reached that day and the maximum number of databases you use. For databases greater than 1 GB, you will be billed in the next whole gigabyte increment. For example, if you utilized two databases, one that was 4.4 GB and one that was 14.4 GB for 1 day during a billing month, you would be charged for a 5 GB and 15 GB database for that day, which would total $2.643. Below are the calculations:
-
5 GB: ($9.99 for the first GB + $3.996 per GB for the next 4 GB) / 31 days = $0.838
-
15 GB: ($45.954 for the first 10 GB + $1.998 per GB for the next 5 GB) / 31 days = $1.805
-
Total: ($0.838 + $1.805) = $2.643
For more information about billing, see Windows Azure Pricing Overview.
Buying a SQL Database Subscription
The Microsoft Online Services Customer Portal is where you purchase subscriptions to the Windows Azure platform and to other Microsoft Online Services. After your purchase is complete, you will receive a confirmation notification in e-mail with instructions for accessing your account in the SQL Database platform.
When you purchase your subscription to the service through Microsoft Online Services Customer Portal, you will be prompted to create a profile for your account owner. The account owner or account administrator is the person who signs up for the SQL Database platform and other Microsoft Online Services. As an account owner, you own the billing relationship with Microsoft. You can log in to the Microsoft Online Services Customer Portal to manage your subscriptions and to the Windows Azure Platform Management Portal to manage your SQL Database servers.
To activate your subscription, you will need to enter contact details for the person in your company who will be responsible for setting up and managing your service. This person is called the service administrator, and is assigned by the account owner. The service administrator defaults to the account owner from your profile, in case your service administrator is the same as your account owner. The service administrator can only access the Management Portal. As soon as activation is complete, an e-mail message is sent to the account owner and the service administrator, outlining the next steps to take.
Bandwidth Savings on the Windows Azure Platform
Bandwidth used between SQL Database and Windows Azure is free within the same sub-region or data center. When designing your system, organize it so that operations incurring large data transfers are within the Windows Azure platform and the same sub-region. When deploying a Windows Azure application, locate the application and the SQL Database within the same sub-region to avoid bandwidth costs.
Limiting Database Size with the MAXSIZE Setting
When you choose a database edition, you also select the MAXSIZE. MAXSIZE provides the ability to limit the size of the database. If the size of the database reaches its MAXSIZE you will receive an error code 40544. When this occurs, you cannot insert or update data, or create new objects (such as tables, stored procedures, views, and functions). However, you can still read and delete data, truncate tables, drop tables and indexes, and rebuild indexes. You can then update MAXSIZE to a value larger than your current database size or delete some data to free storage space. There may be as much as a fifteen-minute delay before you can insert new data. For Web Edition, valid values of MAXSIZE are: 1GB or 5GB. For Business Edition, valid values are: 10GB intervals up to 50 GB, and then 50 GB increments up to 150GB. You are billed for the peak size the database reaches, daily. For example, if you have four Web Edition databases with a MAXSIZE of 1 GB that are each 250 MB, you will be charged $9.99 per month for each database. Database usage is calculated daily, so if you create a database in the middle of the month, you will be charged a prorated fee for that database.
The size of the database includes the data, indexes, and objects. The size does not include logs, system tables, server catalogs, the master database, or additional replicas. If you exceed the storage capacity, the service rejects additional inserts. Your database will not be automatically converted to an edition that supports additional inserts.
Database Federations
The federation root and all its members are part of the server database count and are billed as regular databases. Federation members are physically implemented as individual databases, so each federation member adds to the database count.
Billing During SPLIT and DROP Operations
During a DROP operation, existing databases are used and no transfer of user data is required. The dropped database (federation member) is removed from the SQL Database bill for the server in the next day.
SPLIT operations always create new physical database(s). For example, a SPLIT operation with a single split point, such as ALTER FEDERATION … SPLIT(100), creates 2 new databases (federation members,) and drops the source database when the operation is complete. The new database(s) are not part of your build during the SPLIT operation, however once the operation completes and the database(s) are online, they become part of your bill. Databases that are in a failed state do not appear on your bill.
For both operations the source database (federation member) remains accessible throughout the operation, and will continue to accrue charges as normal.
Viewing Your Bill and Usage
You can access the usage details of SQL Database accounts through system views on the SQL Database server.
The sys.database_usage view lists the number, type, and duration of databases on the server and the sys.bandwidth_usage view describes the bandwidth used with each database. For more information, see the following topics: and.
See Also