Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Schedule/Alert Daemon

Posted on 2010-08-17
3
Medium Priority
?
331 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
devarajamurthy earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 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