I am opening a connection to a sql azure serverless database. This database pauses if unused for 1 hour.
I connect to this database via an azure function. The conn.open(); line times out after 10 seconds despite the connection string having timeout set to 300 seconds. The database is also not unpausing on this connection attempt.
I had assumed that when a connection is made it will restart, and this may take a few minutes but the code seems to be ignoring the connection string timeout value.
Is there somewhere else i should set this timeout?
Conn String:
Server=tcp:myDBServer.database.windows.net,1433;Initial Catalog=sample-Db;Persist Security Info=False;User ID={your_user};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=300;