The session limit for the database is 640 and has been reached

This post has been republished via RSS; it originally appeared at: Azure Database Support Blog articles.

Symptoms: 

 

when connecting to Azure SQL DB you get the below error:

Resource ID : 2. The session limit for the database is 640 and has been reached. See

'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance.

 

More information about error: Error 10928: Resource ID: %d

 

Resolution:

 

the mitigation for this issue is to make sure the application create the connection with the user database instead of the master database.

 

you may check session limit for your current service tier in the docs page:

Resource limits for Single database using DTU model

Resource limits for Single database using vCore model

Resource limits for Elastic pool database using DTU model

Resource limits for Elastic pool database using vCore model

 

you will find that 640 limit is not listed in any of the above pages. 

the 640 is the session limit for the master database of your Azure SQL Server. 

generally speaking, no connection should be created with the master database as in master nothing (almost) can be done. 

also cross database queries are not supported for Azure SQL DB. 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.