Solved

Creating a process

Posted on 2004-04-28
4
171 Views
Last Modified: 2010-04-15
Hi,

 I need to write a program which shud run continuously, at some specific time it shud start another process to do some database operations. I'm new to C#...Any suggestions.. I tried some program which throuws stackoverflowexception..

Thanks in advance,
Guru
0
Comment
Question by:ggurus
4 Comments
 
LVL 6

Accepted Solution

by:
zulu_11 earned 50 total points
ID: 10946964
I believe the answer would be a Windows service with a timer control  which would activate the DB process that you want to start after the pre-defined time..

Write the code that you want to run in the Timer_elapsed function ..this would solve your problem..
You'll have a process running in the form of a windows service which would run the desired process as and when the time elapses in the timer object..

Zulu
0
 
LVL 10

Assisted Solution

by:ptmcomp
ptmcomp earned 50 total points
ID: 10962863
Use the "Taks Scheduler" which you can find in the Control Panel or Windows folder. It's also used internally by windows for SqlServer Jobs, Backup and so on.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
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…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 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

13 Experts available now in Live!

Get 1:1 Help Now