Solved

Creating a process

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET Web API or ASP.NET Core MVC? 3 53
This code tracks birthdays 3 61
LINQ - C# to VB convertion 12 48
Excel file not created as expected 7 51
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 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

22 Experts available now in Live!

Get 1:1 Help Now