Solved

Creating a process

Posted on 2004-04-28
4
177 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web Form VB.Net  import CSV 4 39
Google Directions API to Map URL -C#? 3 28
SqlDataBase 7 48
VS2013 publish C# application Created folder -- where is it??? 10 18
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

831 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