Hitting Azure DB Session Limit

Ben White 0 Reputation points
2023-04-13T14:34:36.0833333+00:00

I've got an Azure SQL database running, <100 records. I use the database for development, but that came to a halt today, I've apparently hit the session limit: ConnectionError: Resource ID : 2. The session limit for the database is 300 and has been reached. See 'https://docs.microsoft.com/azure/azure-sql/database/resource-limits-logical-server' for assistance. There are 6 total devs on the team, so we really shouldn't be hitting 300 sessions. Is there something that's preventing the sessions from closing? Is there some way to force close them? I can't even get into the query editor on the website. User's image

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 35,406 Reputation points MVP Volunteer Moderator
    2023-04-13T15:16:11.64+00:00

    Probably the Developers is not the issue but the applications your are developing and testing. In this scenario or you need to control the number of connections in the application side, or if you really need more concurrent session you need to scale up to higher tier.

    The database tier is Basic (DTU-Model) please consider using Serverless for Dev/Test. Serverless can get auto-paused when not in use.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.