473,385 Members | 1,370 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,385 software developers and data experts.

start actions at a specific time

Greetings

I am working on a Senior Project for school. It is a simple ASP.NET on
line card catalog for an in-house library. One of the requests the
client has is to send an email reminder to users who have checked out
materials for over two weeks. I can figure out how to do everything but
time the query for the database to get the list of users.

My initial idea is to have a small class that would have a timer running
in the background and check itself every 24 hours and then fire the
message or whatever to start the process. Is that the best way? Or am
I missing something simpler and better. I am a great believer is KISS
(Keep It Simple Stupid)

Thanks

Bob

Nov 15 '05 #1
2 2898
Bob
Have you considered doing a scheduled task. You can do this from Control Panel and Scheduled Tasks and create a new task. The beauty of this approach is that your application is not burdened with making the decision of when to run. You can delegate that task to the "Scheduled Tasks" in windows

With Regards

Deepa
[I code, therefore I am
----- Bob Cummings wrote: ----

Greeting

I am working on a Senior Project for school. It is a simple ASP.NET on
line card catalog for an in-house library. One of the requests the
client has is to send an email reminder to users who have checked out
materials for over two weeks. I can figure out how to do everything but
time the query for the database to get the list of users

My initial idea is to have a small class that would have a timer running
in the background and check itself every 24 hours and then fire the
message or whatever to start the process. Is that the best way? Or am
I missing something simpler and better. I am a great believer is KISS
(Keep It Simple Stupid

Thank

Bo
Nov 15 '05 #2
Deepak has the right idea, Robert. One addition:
As soon as you send the e-mail, make sure to IMMEDIATELY mark the record in
the database. Otherwise, anyone interrupting your application will cause
the entire list of offenders to be spammed when it starts back up (and those
of us who are tardy with our books won't like that very much :-).

You will also want to put in a check in the unlikely event that your
application is not done spamming the list when either a person or the timer
fires off again and attempts to start your application running in a second
process. This would be messy, since everyone still remaining in the list
would get two e-mails.

Good Luck,
--- Nick

"Deepak" <an*******@discussions.microsoft.com> wrote in message
news:6B**********************************@microsof t.com...
Bob,
Have you considered doing a scheduled task. You can do this from Control Panel and Scheduled Tasks and create a new task. The beauty of this approach
is that your application is not burdened with making the decision of when to
run. You can delegate that task to the "Scheduled Tasks" in windows.
With Regards,
Deepak
[I code, therefore I am]
----- Bob Cummings wrote: -----

Greetings

I am working on a Senior Project for school. It is a simple ASP.NET on line card catalog for an in-house library. One of the requests the
client has is to send an email reminder to users who have checked out
materials for over two weeks. I can figure out how to do everything but time the query for the database to get the list of users.

My initial idea is to have a small class that would have a timer running in the background and check itself every 24 hours and then fire the
message or whatever to start the process. Is that the best way? Or am I missing something simpler and better. I am a great believer is KISS (Keep It Simple Stupid)

Thanks

Bob

Nov 15 '05 #3

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

Similar topics

6
by: Karl A. Krueger | last post by:
I'm in the middle of refactoring a small mod_python Web application, which uses the Publisher handler. This application is currently a single main Python file (which loads several other files as...
5
by: mitchchristensen | last post by:
I have a transaction log that tracks issues from a call center. Each time an issue is assigned to someone else, closed, etc. I get a time stamp. I have these time stamps for the beginning of an...
1
by: ammarton | last post by:
Hello all...I'm a bit new to working with Macros in Access so forgive me if the terminology I use is not accurate. To preface this, basically I am using a form on a replicated database so the...
7
by: A.M-SG | last post by:
Hi, How can I list the available actions (and the command line for each action) for a specific file extension? I am using C# and .NET 1.1 I need that for printing .PDF files (*.PDF...
2
by: Sin | last post by:
Hello everyone, I'm totally stumped at how little info I can find in MSDN or on the web concerning this. It's almost as if only microsoft personel hold the key to these secrets or something!!! ...
2
by: | last post by:
I am new to Visual Basic.Net using the Standard Edition, which does not come with a Deployment wizard, so I use the template on the File Systems Tab. Everything works fine, and I have enabled the...
4
by: Jm | last post by:
Hi all I know this might sound a little stupid but i thought id better ask anyway in case there are some things i havent already tried that everybody else knows. Basically i am wondering if...
7
by: =?Utf-8?B?Sm9obi5ORVQ=?= | last post by:
Hi I have written a windows service in C# / .NET I have installed it and it's working fine on a couple boxes but on my XP box I get this error when I try to start it: Error 1053: The service did...
1
by: pushrodengine via AccessMonster.com | last post by:
Is there a way to log user actions? What I would like is to be able to log user activities within the database. The table “tblUserEvents” would contain two fields. Field one “EventTime”...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.