.Net and scheduling

We're trying to write an app which monitors certain dates in SQL and based on the values of dates/triggers, automatically constructs and fires off email.
Is it possible to load a class into IIS memory and call that logic through either an ASP.Net page or service using a scheduler? The main method in the class could call others which in turn would construct and send any emails.
We were originally thinking about writing an app that can be called from the scheduler but if there is a way to load the logic into IIS and call it through there that would remove at least a step...
I'm totally open to suggestions..
Thanks!
[649 byte] By [orcrist4] at [2008-1-28]
# 1
The correct design would be to use a Windows Service for writing an application that monitors stuff. So, I would recommend that you write a Windows Service which polls the DB and sends mails based on the value of dates.

Regards,
Vikram

Vikram at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
There are two other options:

- Use SQL Server Agent to schedule the tasks for you, look up SQL Server Agent in SQL Server Books Online
- Schedule a task using the Windows Scheduler, you can programmically manipulate the task scheduler using C# or VB.NET by using the following library: http://www.codeproject.com/csharp/TSNewLib.asp/

DavidM.Kean at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
for long running operations , of course we would use Windows services .
but isnt it enough to use SQL server Triggers for this purpose ?
so a trigger is fired and send an email by SQLMail .
Hussein at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 4

tes post firsttime

ateens108 at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified