473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Scheduled job: what program types will work

Need to write a standalone application that processes data once per day.
Looking for the application program types available that would satisfy these
requirements:
Requirements:
1. Unattended processing that looks for rows in tables in a SQL Server
database that is updated in batch once per day via another company's daily
process. The newly added rows are selected based on a process date
parameter (see #4).
2. Cleans and reformats the selected data rows, and then updates tables on
another SQL Server database.
3. Need to be able to run in a manual mode in case of rerun. User would
need to supply the process date parameter (any date).
4. The automated date parameter would be one day greater than the Max date
parameter found in a ProcessHistory table where one summary row would be
inserted by this process each day upon successful completion of this
process.

What program types might fit, and how would they work? Windows Service,
Batch file that launches an .exe, some combination, other ideas?

Thanks,
Dean Slindee
Jun 27 '08 #1
3 1770
JB
Hi Dean,

I'm currently writing a similar type of application.
The solution I chose is in a nut shell:
- A windows Service that runs the scheduler and the DB Queries (SELECT
and INSERT)
- A Windows Form Client application to configure the various
parameters (e.g. scheduler frequency, Queries to run, etc), to start
the scheduler and to run Queries manually.

Depending on your requirements, a standalone application might be much
easier to develop, the only drawback is that you'd have to have a user
logged on all the time for the application to run.

JB
Dean Slindee wrote:
Need to write a standalone application that processes data once per day.
Looking for the application program types available that would satisfy these
requirements:
Requirements:
1. Unattended processing that looks for rows in tables in a SQL Server
database that is updated in batch once per day via another company's daily
process. The newly added rows are selected based on a process date
parameter (see #4).
2. Cleans and reformats the selected data rows, and then updates tables on
another SQL Server database.
3. Need to be able to run in a manual mode in case of rerun. User would
need to supply the process date parameter (any date).
4. The automated date parameter would be one day greater than the Max date
parameter found in a ProcessHistory table where one summary row would be
inserted by this process each day upon successful completion of this
process.

What program types might fit, and how would they work? Windows Service,
Batch file that launches an .exe, some combination, other ideas?

Thanks,
Dean Slindee
Jun 27 '08 #2

"Dean Slindee" <sl*****@charter.netwrote in message
news:FD**********************************@microsof t.com...
Need to write a standalone application that processes data once per day.
Looking for the application program types available that would satisfy
these requirements:
Requirements:
1. Unattended processing that looks for rows in tables in a SQL Server
database that is updated in batch once per day via another company's daily
process. The newly added rows are selected based on a process date
parameter (see #4).
2. Cleans and reformats the selected data rows, and then updates tables on
another SQL Server database.
3. Need to be able to run in a manual mode in case of rerun. User would
need to supply the process date parameter (any date).
4. The automated date parameter would be one day greater than the Max date
parameter found in a ProcessHistory table where one summary row would be
inserted by this process each day upon successful completion of this
process.

What program types might fit, and how would they work? Windows Service,
Batch file that launches an .exe, some combination, other ideas?
What would work are a .Net Console application or a .Net Windows service
application with either one on a thread timer that awakes the thread, does
the processing on the child thread, and the thread goes back to sleep and
waits for the next countdown interval to execute the thread again. The
program is always running. It would be a continuous running application that
a command must be issued to shutdown/terminate the program's execution.

There can be more than one child thread with each child thread dedicated to
a particular function that it performs once the thread awakes. There are
ways to get program execution information that could be read via a
configuration XML file that the application uses.

It's a piece of cake. I have done what you are wanting to do with both types
of .Net program solutions.

The trick would be to send a email and logging the error when things are not
working properly, such as SQL Server going down.


Jun 27 '08 #3
JB
Hi Dean,

Responding to your email below:
I need just one parameter, and it could be Today.Date, so I might not
need the Windows Form Client application.
What exactly do you mean by "runs the scheduler"? I need to Start the
process once per day and it could be at a fixed time, say 2AM. Since
the Windows Service is continually running, are you interacting with
the Scheduled Events on the host server?

In my case the Windows Form application is only here because a Windows
Service shouldn't interact with the UI.
It looks like you could just use a Windows Service on its own. Any
parameters you need (e.g. frequency of the run, process date, etc)
could be stored in a config file read by the service upon starting up.
By Run the Scheduler I mean the timer that wakes up every interval and
do the job that needs to be done (e.g. Query the Database).
The Windows Service could run on the host server.

Regards
JB
Mr. Arnold wrote:
"Dean Slindee" <sl*****@charter.netwrote in message
news:FD**********************************@microsof t.com...
Need to write a standalone application that processes data once per day.
Looking for the application program types available that would satisfy
these requirements:
Requirements:
1. Unattended processing that looks for rows in tables in a SQL Server
database that is updated in batch once per day via another company's daily
process. The newly added rows are selected based on a process date
parameter (see #4).
2. Cleans and reformats the selected data rows, and then updates tables on
another SQL Server database.
3. Need to be able to run in a manual mode in case of rerun. User would
need to supply the process date parameter (any date).
4. The automated date parameter would be one day greater than the Max date
parameter found in a ProcessHistory table where one summary row would be
inserted by this process each day upon successful completion of this
process.

What program types might fit, and how would they work? Windows Service,
Batch file that launches an .exe, some combination, other ideas?

What would work are a .Net Console application or a .Net Windows service
application with either one on a thread timer that awakes the thread, does
the processing on the child thread, and the thread goes back to sleep and
waits for the next countdown interval to execute the thread again. The
program is always running. It would be a continuous running application that
a command must be issued to shutdown/terminate the program's execution.

There can be more than one child thread with each child thread dedicated to
a particular function that it performs once the thread awakes. There are
ways to get program execution information that could be read via a
configuration XML file that the application uses.

It's a piece of cake. I have done what you are wanting to do with both types
of .Net program solutions.

The trick would be to send a email and logging the error when things are not
working properly, such as SQL Server going down.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Larry Neylon | last post by:
Hi All, I want to perform the simple task of running an ASP script as a scheduled job. Previously I've always either run a .vbs script via windows Scheduler, or put some logic in my...
11
by: Peter Neumaier | last post by:
Hi! I scheduled a DTS-Import from MySQL, whenever I run it manually (Right-Click on the DTS package) it runs through without any problems. But firing it by a schedule doesn't work!? Just to...
4
by: DFS | last post by:
I have two nightly scheduled jobs at a client site - one at 2:00am and the other at 5:00am Both jobs launch Access 2003, log into the default system workgroup, open a Access .mdb that collects...
11
by: Max | last post by:
I'm writing a program that needs to be able to create custom .job files and add them to the scheduled tasks folder. What I'd like to know is, what is the format of a .job file and how do I go about...
9
by: helpful sql | last post by:
Hi all, I want to write a .Net solution that I would like to run as a scheduled task in windows. I am not going to need any user interface. What I don't understand is what kind of project I need...
3
by: Mike | last post by:
Hi all, In my recent project (using ASP.NET 2.0 and MSSQL), I need to scheduled a certain operation to be executed, for example, on beginning of a month. Is there anyway to do this on...
4
by: AxOn | last post by:
Hi, Does anybody know how to get an application do something at a specific time or date? I want to be able to choose when to back up some files, for example once a month, once a week or every...
0
by: kkkanoor | last post by:
I am trying to schedule tasks in Windows from my C# program. The tasks get listed in Windows Schedule Tasks list, but it is not getting invoked. It seems I need to give the user name and password to...
11
by: Jim | last post by:
Hi, I want to schedule a Python program that reads the command line for input. However, when adding an argument to the command line Python will not pick it up when using Windows scheduled...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.