Solved

Schedule/Alert Daemon

Posted on 2010-08-17
3
320 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

932 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

11 Experts available now in Live!

Get 1:1 Help Now