[英]How to send an email to outlook when a record is inserted in my Database?
I need to know if it is possible to create a trigger that would send an email to outlook when a record is inserted into a database? 我需要知道是否可以创建一个触发器,当将记录插入数据库时,该触发器将向Outlook发送电子邮件吗?
Eg When record A is inserted, the trigger will run and send an email to the admin to inform them of a change. 例如,当插入记录A时,触发器将运行并向管理员发送电子邮件以通知他们更改。
可以使用从ssms在SQL Server代理下创建警报来完成此操作,在此之前,您需要在ssms中配置“受管理的数据库邮件”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.