简体   繁体   中英

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
  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

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.

or don't use access and find a database which does support triggers and call outs to external programs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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