Solved

Creating a process

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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