How to configure mail on Azure SQL Database

谁说胖子不能爱 提交于 2020-01-20 08:36:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!