SQL Azure provides a large-scale multi-tenant database service on shared resources. In order to provide a good experience to all SQL Azure customers, your connection to the service may be closed due to the following conditions:
-
Excessive resource usage
-
Long-running queries
-
Long-running single transactions,
-
Idle connections
-
Failover due to server failures
When this happens, you will receive one of the following errors:
|
Error
|
Severity
|
Description (message text)
|
|---|
|
40197
|
16
|
The service has encountered an error processing your request. Please try again. Error code %d.
|
|
40501
|
20
|
The service is currently busy. Retry the request after 10 seconds. Code: %d.
|
|
40544
|
20
|
The database has reached its size quota. Partition or delete data, drop indexes, or consult the documentation for possible resolutions. Code: %d
|
|
40549
|
20
|
Session is terminated. Reason: Long running transaction.
|
|
40613
|
17
|
Database '%.*ls' on server '%.*ls' is not currently available. Please retry the connection later. If the problem persists, contact customer support, and provide them the session tracing id of '%.*ls'.
|
We recommend that you implement the retry logic in your SQL Azure applications to catch these errors. When an error occurs, re-establish the connection and then re-execute the failed commands or the query.
In this release, SQL Azure provides two database sizes: 1 GB (Web Edition) or 10 GB (Business Edition). If the size of your database reaches its MAXSIZE, you will receive an error code 40544. When this happens, you cannot insert or update data, rebuild indexes, and create new objects, such as tables, stored procedures, views, and functions. However, you can still read and delete data, truncate tables, and drop tables and indexes. If you remove some data to free up your storage space, there can be as much as a fifteen-minute delay before you can insert new data.
Other Issues
Additional requirements for SQL Azure:
-
You must always support encryption when connecting to SQL Azure.
-
Before your computer can access SQL Azure, you may need to create a firewall exception on your computer for TCP port 1433. SQL Azure Firewall for more information.
-
Only TCP-IP connections are allowed.
-
Currently SQL Azure supports a maximum of five databases including the master database, so only four user databases can be created.
Features of SQL Server that SQL Azure does not support:
Multiple Active Result Sets (MARS) is not supported. SQL Azure runs single batches on a single connection.
Because some tools implement tabular data stream (TDS) differently, you may need to append the SQL Azure server name to the login in the connection string using the <login>@<server> notation. See Managing Databases and Logins in SQL Azure for more information.
Windows Authentication (integrated security) is not supported. SQL Azure only supports SQL Authentication (user name and password). See Using SQL Authentication in Books Online.
-
Certain user names are disallowed due to security reasons. You cannot use names that start with:
-
admin
-
administrator
-
guest
-
root
-
sa
-
The SQL Server browser is not supported because SQL Azure does not have dynamic ports, only port 1433.
Note: |
|---|
|
Maximum allowable durations are subject to change. In this release, idle connections and long running queries or transactions are closed after five minutes.
|