Blog Post

Azure Database Support Blog
1 MIN READ

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

Yochanan_Rachamim's avatar
Jan 30, 2020

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. 

 

 

 

 

Updated Jan 30, 2020
Version 2.0
No CommentsBe the first to comment