prevent timeout when connecting to paused azure sql database serverless

na 146 Reputation points
2022-05-26T13:03:10.847+00:00

I have a linked service to an azure sql database on serverless.
The sql database auto pauses when not in use for a period of time.

The first connection to the database always fails, as the un-pause takes a number of minutes.
I added a connection property "connection timeout" with a value of 100000, but it still fails after about 30 seconds.

How can i ensure the connection to the paused azure sql database does not timeout while the database is un-pausing?

205799-image.png

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,632 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. na 146 Reputation points
    2022-05-30T08:12:01.507+00:00

    Solution i ended up using was the retry option in the lookup activity, along with specifying the seconds between each retry.

    1 person found this answer helpful.

  2. Pratik Somaiya 4,211 Reputation points Volunteer Moderator
    2022-05-26T13:18:24.023+00:00

    Hello @na

    Instead of adding connection timeout property, I would recommend you to use Wait activity before the activity where you access synapse, this way your pipeline will trigger at your scheduled time but will wait for x number of time until Synapse is resumed


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.