简体   繁体   English

在MS Access DB上在dotnet程序集中调用方法

[英]Invoke a method in dotnet assembly on MS access DB

I have the below scenario. 我有以下情况。

  1. We have MS access DB where system inserts the records randomly and we don't have control on insertion 我们拥有MS Access DB,系统会在其中随机插入记录,并且无法控制插入
  2. I need to call a method which sends email when any record is inserted. 我需要调用一个在插入任何记录时发送电子邮件的方法。

I have the functionality in place to send email, but only thing is need to catch the event exactly when record being inserted on Access 我具有发送电子邮件的功能,但是只有在Access上插入记录时才需要准确捕获事件

Is there any way to do it? 有什么办法吗?

Access doesn't support triggers thus you will have to write a utility which "queries" the table for new records every X minutes and runs as a service on a machine with connectivity to the database and email servers. Access不支持触发器,因此您将不得不编写一个实用程序,该实用程序每隔X分钟就会“查询”表中的新记录,并在与数据库和电子邮件服务器连接的计算机上作为服务运行。

or don't use access and find a database which does support triggers and call outs to external programs. 或不使用访问权限,而是找到一个支持触发器和外部程序调用的数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM