SQL Connection Failed: Database 'xyz' on server 'xyz.database.windows.net' is not currently available

psdehr 0 Reputation points
2025-02-27T16:50:49.8933333+00:00

We have a free-tier Azure SQL database with paid overages costs but sometimes still see the database not being available as shown by this error message in the invocations log:

SQL Connection Failed: Database 'xyz' on server 'xyz.database.windows.net' is not currently available. Please retry the connection later. If the problem persists, contact customer support, and provide them the session tracing ID of '{alphanumeric-string}'.

Can anything be done?

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Erland Sommarskog 117.8K Reputation points MVP
    2025-02-27T22:28:38.3166667+00:00

    Is this a serverless database? Serverless databases are unloaded from the server when they have been idle for a while. When they start up again, it can take some time, and you need some patience and multiple connection attempts.

    Serverless is great for databases that are used infrequently, since unloading them keep the costs down. On the other hand, If they are up most of the time, a provisioned edition is a better choice. But I seem to recall that the free-tier is always Serverless.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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