scheduled task or windows service

Posted by czuroski on Stack Overflow See other posts from Stack Overflow or by czuroski
Published on 2010-05-11T14:44:26Z Indexed on 2010/05/11 14:54 UTC
Read the original article Hit count: 320

Hello, I have to create an app that will read in some info from a db, process the data, write changes back to the db, and then send an email with these changes to some users or groups. I will be writing this in c#, and this process must be run once a week at a particular time. This will be running on a Windows 2008 Server.

In the past, I would always go the route of creating a windows service with a timer and setting the time/day for it to be run in the app.config file so that it can be changed and only have to be restarted to catch the update.

Recently, though, I have seen blog posts and such that recommend writing a console application and then using a scheduled task to execute it.

I have read many posts talking to this very issue, but have not seen a definitive answer about which process is better.

What do any of you think?

Thanks for any thoughts.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#