问题
We are moving from Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64) to Microsoft SQL Azure (RTM) - 12.0.2000.8
Previously we send mail from database mail if a particular table have not updated in a particular time interval.
But i tried to do the same on Azure mail but seems like this functionality is not available on this.
回答1:
You can write a Stored Procedure to query the table and return results, read the results in an Azure WebJob, Logic App or Azure Function, schedule the execution and send the results via email. Here you can find an example using a Logic App and here you can find how to schedule it.
You can use your own Exchange/SMTP server or you can choose to use SendGrid to send out the email as shown here.
来源:https://stackoverflow.com/questions/54782922/how-to-configure-mail-on-azure-sql-database