Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am looking to do an action on every day at a particular time like triggers in sql, but here i am looking to do this in c#.net, can any one please help me,

Thanks
Posted

 
Share this answer
 
Comments
Manas Bhardwaj 23-Aug-12 7:36am    
very good +5!
Prasad_Kulkarni 23-Aug-12 7:40am    
:) Thank you Manas!
1.) Use a windows service.
2.) Schedule your application using Windows Schedular.
 
Share this answer
 
It depends on the action itself. Ex:
- SQL Server: Schedule a job in SQL Server Agent (http://msdn.microsoft.com/en-us/library/ms191439.aspx[^], SQL Agent: A Job Scheduler Framework[^])
- Using a scheduler service (A New Task Scheduler Class Library for .NET[^], http://kodethoughts.blogspot.fr/2009/06/creating-windows-task-scheduler-service.html[^] )
- Using the system task scheduler: http://taskscheduler.codeplex.com/[^]

So if your purposes does not fit in the scope of these approaches, please elaborate your question a little more.
 
Share this answer
 
v2
Thanks all for your solutions I got a mixed one from all by creating a windows service and adding a timer to that once, and i am calling the function on elapsed event of that timer, this one i found it from http://www.aspfree.com/c/a/C-Sharp/Timer-Objects-in-Windows-Services-with-C-sharp-dot-NET/[^] here, really a good explanation and more over easy solution
Thanks all
 
Share this answer
 
v2

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