Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two applications that use the same database.
I want one application to generate an email when the database is modified by second application?
how would this can be done?
I am using MYSQL 5.1 as database and C# 3.5 for my applications.
Posted

1 solution

For every and any SQL update/insert/delete keep a parameter that tells if its from application1 or application2.
Based on this parameter, in AFTER update,insert,delete TRIGGER, send across an email to whomsoever you want to.

For sending emails using triggers, look here:
Using a DML trigger with a reminder e-mail message[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900