You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b68e2c4
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -171,21 +171,39 @@ These exceptions can occur either because of connection or query issues. To conf
171
171
172
172
Connection timeouts occur because the application can't connect to the server. To resolve this issue, try the steps (in the order presented) in the [Steps to fix common connection issues](#steps-to-fix-common-connection-issues) section.
173
173
174
+
## Network connection termination errors
175
+
176
+
SQL client libraries connect to Azure SQL Database and Azure SQL Managed Instance using the TCP network protocol. A client library uses a lower level component called TCP provider to manage TCP connections. When the TCP provider detects that a remote host has unexpectedly terminated an existing TCP connection, the client library raises an error. Because the error is a client error and not a SQL server error, there is no SQL error number included. Instead, the error number is 0, and the error message from the TCP provider is used.
177
+
178
+
Examples of network connection termination errors include:
179
+
180
+
`A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) An existing connection was forcibly closed by the remote host`
181
+
182
+
`A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)`
183
+
184
+
`The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)`
185
+
186
+
`A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)`
187
+
188
+
Connection termination errors may occur because the database or elastic pool is temporarily unavailable. They may also occur because of various problems in the network infrastructure between the database server and the client application, including firewalls, network appliances, etc. These problems may be transient or permanent. As a general guidance, applications should use a fixed number of retry attempts for these errors before considering them permanent failures.
189
+
174
190
## Resource governance errors
175
191
176
192
Azure SQL Database uses a resource governance implementation based on [Resource Governor](/sql/relational-databases/resource-governor/resource-governor) to enforce resource limits. Learn more about [resource management in Azure SQL Database](resource-limits-logical-server.md).
177
193
178
194
The most common resource governance errors are listed first with details, followed by a table of resource governance error messages.
179
195
180
-
### Error 10928: Resource ID : 1. The request limit for the database is *%d* and has been reached.
196
+
### Errors 10928 and 10936: Resource ID : 1. The request limit for the [database or elastic pool] is *%d* and has been reached
197
+
198
+
If the database level limit is reached, the detailed error message in this case reads: `Resource ID : 1. The request limit for the database is %d and has been reached. See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance.`
181
199
182
-
The detailed error message in this case reads: `Resource ID : 1. The request limit for the database is %d and has been reached. See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance.`
200
+
If the elastic pool limit is reached, the detailed error message in this case reads: `Resource ID : 1. The request limit for the elastic pool is %d and has been reached. See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance.` Elastic pool limits are higher than database limits. They may be reached when multiple databases in the pool use a resource (such as workers) concurrently.
183
201
184
-
This error message indicates that the worker limit for Azure SQL Database has been reached. A value will be present instead of the placeholder *%d*. This value indicates the worker limit for your database at the time the limit was reached.
202
+
This error message indicates that the worker limit for the database or elastic pool has been reached. The maximum concurrent workers value for the service objective of the database or elastic pool will be present instead of the placeholder *%d*.
185
203
186
204
> [!NOTE]
187
-
> The initial offering of Azure SQL Database supported only single threaded queries. At that time, the number of requests was always equivalent to the number of workers. Error message 10928 in Azure SQL Database contains the wording "The request limit for the database is *N* and has been reached" for backwards compatibility purposes. The limit reached is actually the number of workers. If your max degree of parallelism (MAXDOP) setting is equal to zero or is greater than one, the number of workers may be much higher than the number of requests, and the limit may be reached much sooner than when MAXDOP is equal to one.
188
-
>
205
+
> The initial offering of Azure SQL Database supported only single threaded queries. At that time, the number of requests was always equivalent to the number of workers. Error messages 10928 and 10936 in Azure SQL Database contain the wording "The request limit [...] is *N* and has been reached" for backwards compatibility purposes. The limit reached is actually the number of workers. If your max degree of parallelism (MAXDOP) setting is equal to zero or is greater than one, the number of workers may be much higher than the number of requests, and the limit may be reached much sooner than when MAXDOP is equal to one.
206
+
>
189
207
> Learn more about [Sessions, workers, and requests](resource-limits-logical-server.md#sessions-workers-and-requests).
190
208
191
209
#### Connect with the Dedicated Admin Connection (DAC) if needed
@@ -258,7 +276,7 @@ Triage an incident with insufficient workers by following these steps:
258
276
259
277
#### Increase worker limits
260
278
261
-
If the database consistently reaches its limit despite addressing blocking, optimizing queries, and validating your MAXDOP setting, consider adding more resources to the database to increase the worker limit.
279
+
If the database or elastic pool consistently reaches its worker limit despite addressing blocking, optimizing queries, and validating your MAXDOP setting, consider scaling up the databaseor elastic pool to increase the worker limit.
262
280
263
281
Find resource limits for Azure SQL Database by service tier and compute size:
264
282
@@ -384,7 +402,8 @@ For more information on other out of memory errors and sample queries, see [Trou
384
402
385
403
| Error code | Severity | Description |
386
404
| ---:| ---:|:--- |
387
-
| 10928 |20 |Resource ID: %d. The %s limit for the database is %d and has been reached. See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance..<br/><br/>The Resource ID indicates the resource that has reached the limit. When Resource ID = 1, this indicates a worker limit has been reached. Learn more in [Error 10928: Resource ID : 1. The request limit for the database is *%d* and has been reached.](#error-10928-resource-id--1-the-request-limit-for-the-database-is-d-and-has-been-reached) When Resource ID = 2, this indicates the session limit has been reached.<br/><br/>Learn more about resource limits: <br/>• [Logical SQL server resource limits](resource-limits-logical-server.md)<br/>• [DTU-based limits for single databases](service-tiers-dtu.md)<br/>• [DTU-based limits for elastic pools](resource-limits-dtu-elastic-pools.md)<br/>• [vCore-based limits for single databases](resource-limits-vcore-single-databases.md)<br/>• [vCore-based limits for elastic pools](resource-limits-vcore-elastic-pools.md)<br/>• [Azure SQL Managed Instance resource limits](../managed-instance/resource-limits.md). |
405
+
| 10928 |20 |Resource ID: %d. The %s limit for the database is %d and has been reached. See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance..<br/><br/>The Resource ID indicates the resource that has reached the limit. When Resource ID = 1, this indicates a worker limit has been reached. Learn more in [Error 10928: Resource ID : 1. The request limit for the database is *%d* and has been reached.](#errors-10928-and-10936-resource-id--1-the-request-limit-for-the-database-or-elastic-pool-is-d-and-has-been-reached) When Resource ID = 2, this indicates the session limit has been reached.<br/><br/>Learn more about resource limits: <br/>• [Logical SQL server resource limits](resource-limits-logical-server.md)<br/>• [DTU-based limits for single databases](service-tiers-dtu.md)<br/>• [vCore-based limits for single databases](resource-limits-vcore-single-databases.md)<br/>• [Azure SQL Managed Instance resource limits](../managed-instance/resource-limits.md). |
406
+
| 10936 |20 |Resource ID: %d. The %s limit for the elastic pool is %d and has been reached. See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance..<br/><br/>The Resource ID indicates the resource that has reached the limit. When Resource ID = 1, this indicates a worker limit has been reached. Learn more in [Error 10936: Resource ID : 1. The request limit for the elastic pool is *%d* and has been reached.](#errors-10928-and-10936-resource-id--1-the-request-limit-for-the-database-or-elastic-pool-is-d-and-has-been-reached) When Resource ID = 2, this indicates the session limit has been reached.<br/><br/>Learn more about resource limits: <br/>• [Logical SQL server resource limits](resource-limits-logical-server.md)<br/>• [DTU-based limits for elastic pools](resource-limits-dtu-elastic-pools.md)<br/>• [vCore-based limits for elastic pools](resource-limits-vcore-elastic-pools.md)<br/>• [Azure SQL Managed Instance resource limits](../managed-instance/resource-limits.md). |
388
407
| 10929 |20 |Resource ID: %d. The %s minimum guarantee is %d, maximum limit is %d, and the current usage for the database is %d. However, the server is currently too busy to support requests greater than %d for this database. The Resource ID indicates the resource that has reached the limit. For worker threads, the Resource ID = 1. For sessions, the Resource ID = 2. For more information, see: <br/>• [Logical SQL server resource limits](resource-limits-logical-server.md)<br/>• [DTU-based limits for single databases](service-tiers-dtu.md)<br/>• [DTU-based limits for elastic pools](resource-limits-dtu-elastic-pools.md)<br/>• [vCore-based limits for single databases](resource-limits-vcore-single-databases.md)<br/>• [vCore-based limits for elastic pools](resource-limits-vcore-elastic-pools.md)<br/>• [Azure SQL Managed Instance resource limits](../managed-instance/resource-limits.md). <br/>Otherwise, try again later. |
389
408
| 40544 |20 |The database has reached its size quota. Partition or delete data, drop indexes, or consult the documentation for possible resolutions. For database scaling, see [Scale single database resources](single-database-scale.md) and [Scale elastic pool resources](elastic-pool-scale.md).|
390
409
| 40549 |16 |Session is terminated because you have a long-running transaction. Try shortening your transaction. For information on batching, see [How to use batching to improve SQL Database application performance](../performance-improve-use-batching.md).|
0 commit comments