Database becomes unavailable when idle

Leia Fee 0 Reputation points
2025-07-23T13:39:04.1933333+00:00

Am very new to Azure SQL - indeed this is the first thing I've set up. I have a thrid party tool writing to the DB WF capturing tickets from our ticketing system that have passed through a particular status 'waiting approval' and writing a handful of fields (TicketNumber, engineer, title) to a tiny one-table DB so I can audit them later.

Because it's a tiny DB and there are no more than one or two tickets a day to write a few fields about, and because I'm only now learning it I think it fits easily within the free usage band. It works when I test it. However it keeps failing randomly elsewhen.

This is the error (names obfuscated)

[Database 'databasename' on server myservername.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 '{44ADAFBA-0DE1-41FC-B2A9-BED7AB3C4480}']"

It "feels" like my free database is just sort of stopping when I'm not actively checking it in Azure but am I wildly off base, or can give me a clue?

Azure SQL Database
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 79,101 Reputation points Volunteer Moderator
    2025-07-23T15:43:29.96+00:00

    You are correct. When idle, the server is shutdown and part of the serverless cost saving. You should increase the connection timeout. You could schedule a job to hit the server on a periodic basis, but you might use up your compute allotment.


  2. Leia Fee 0 Reputation points
    2025-08-01T09:11:48.86+00:00

    Non of the timeout changes helped so I did fgo for a 'pointless' query listing the tables before making my actual add row query. It's working more or less

    0 comments No comments

  3. Leia Fee 0 Reputation points
    2025-08-12T09:31:10.7333333+00:00

    None of the timeout changes helped so I did go for a 'pointless' query listing the tables before making my actual add row query. That worked.

    0 comments No comments

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.