Hi,
My PHP-based Azure Web App is generating intermittent "Communication Link failure" SQL error messages when trying to run a prepare command on a SQL Azure database.
The Web App uses three databases running on the same Azure server - the other two databases are accessed using the same methodology but are not receiving similar errors.
The Web App is built in PHP and accesses the database using PDO and MSSQL drivers.
The error usually appears after the site is accessed for the first time after not being accessed for a while by a user. Sometimes the error goes away after a page refresh, other times it persists.
I have also been able to clear the error by renaming the database to a different name, and then renaming it back.
As well as user-interface generating db requests, there's also a background process being run every 1 minute by a webhook which accesses the databases to perform tasks like check for new emails to send.
I suspect the culprit may have to do with pooled connections / connection recycling / timeouts, but I'm don't know how to tell.
Very frustrated. Any suggestions?