Share via

After starting the Azure SQL Database, Excel cannot connect to it.

片口 翔太 0 Reputation points
2023-06-28T01:12:22.7566667+00:00

I am running a serverless database.
It does not switch from the suspended state to the active state, it cannot connect from the local environment and times out.
If the data source called from Excel is specified in the database, it will fail with a timeout.

The database itself is active because the results are returned when the query is executed directly in "AzurePortal".

If you know the cause and solution of the above connection failure, please reply.

I also made a connection in SSMS and confirmed that the connection failed.

 In addition, the firewall settings are set to allow communication to port 1433.

 In case unconnnected, changing the AzureDB core CPU settings and I'll be able to connect after reconfiguring the database.
Therefore, I supporse that it is not due to improper firewall settings.

 Based on the above, do you have any idea what causes the connection to fail?

Azure SQL Database

1 answer

Sort by: Most helpful
  1. way0utwest 81 Reputation points MVP
    2023-08-09T17:00:02.8533333+00:00

    This is by design for now. The serverless database needs to transition and restart, and at that time, your connection is broken and needs to be retried. For all my serverless databases, the first connection always fails. This means with SSMS, Excel and clients you do not code, you will get a failure and need to retry manually. For software you code, I would add an automatic retry.

    Was this answer helpful?

    0 comments No comments

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.