简体   繁体   English

在我的数据库中插入记录后,如何向Outlook发送电子邮件?

[英]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.

相关问题 如果数据库记录插入时间早于10分钟,则发送电子邮件 - Send email if a database record inserted time is older than 10 minutes 插入新行后,如何向多个收件人发送电子邮件? - How to send email to multiple recipients when new row inserted ? 将新记录添加到表中时,如何创建触发器以发送电子邮件 - How to create a trigger to send email when a new record is added in to the table 如何使用vb.net通过电子邮件发送(忽略)SQL Server数据库中的选定项目 - How to send to email (outlook) the selected items in SQL Server database using vb.net 如何创建一个表,以便在插入记录时将复合键值插入另一列? - How to create a table such that when ever a record is inserted, composite key values gets inserted in another column? 在MS SQL Server中插入或更改某些数据时发送电子邮件 - Send email when certain Data is being inserted or changed in MS SQL Server 当行插入到另一个数据库时,如何在一个数据库中获取信息? - How to get information in one database when row is inserted in another database? 如何检索数据库中最后插入的值? - How do I retrieve the last inserted value in my database? 没有信息插入数据库中的表中 - No infomation are inserted into my table in the database 访问VBA以基于查询发送Outlook电子邮件 - Access VBA to send Outlook Email based on query
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM