Solved

Schedule/Alert Daemon

Posted on 2010-08-17
3
318 Views
Last Modified: 2012-05-10
Dear Experts,

I need a C# process to run on Archive and monitor the database for certain conditions, and send email alerts when a particular event occurs. Maybe somebody could tell me how I could make a service that would do something every e.g. 20 minutes (or some other programmed time period)?

Thanks.
0
Comment
Question by:tantormedia
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
devarajamurthy earned 500 total points
ID: 33456969
Use CLR trigger to send email alerts on any of the database trigger event. Alternatively can use Timer set to 20 minutes that calls a function to check with database. I prefer CLR trigger if email alerts are required soon after database change.
0
 

Author Comment

by:tantormedia
ID: 33457096
devarajamurthy,

Thank you for your answer. Could you tell me what Timer is? Do you have any example how it is used?

Thank you very much.
0
 
LVL 1

Expert Comment

by:devarajamurthy
ID: 33462244
For Timer object instantiation you can use System.threading.timer class. set the interval of this object to your required time and set the routine name to be called at every interval. The routine specified will be called at specified time intervals where you can have code to send email.

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now