Click here to Skip to main content
15,868,349 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a console application for sending email, The sending time is stored in database.
How to program the console application to run when the current time matches the stored time?
Please give me some good solutions.

Thanks in advance
Posted
Updated 17-Sep-12 2:48am
v3

1 solution

Hi,

You can use System.Threading.Timer to create Timer that will execute your function with particular time interval. This associated function will check all the recoreds that match the database time with current time.

Another way without timer is, you can create one task scheduler that will execute defined time interval and fetch all the records from the database. you can execute any of the dot net application through task scheduler.

Hope one of the solution may work for you.
 
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