Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
Scheduling the Import of data with ASP.NET

Most enterprise ASP.NET web applications have one thing in common: Data Imports.  Whether it is users, locations or transactions, 95%* of the applications that I've built for large corporations require some external data.  Handling this in ASP.NET has always been troublesome for me, so I thought I'd share my method with you. 

In the past, I've used Andy Brummer's scheduled timer to execute my scheduled tasks ( in conjunction with Paul Wilson's keep alive (  This has been the best way that I've been able to make sure that the code will execute on the proper schedules.

Basically, a "timer" thread is executed when the application starts and is checked every millisecond.  If the current "tick" is the same as the set scheduled total ticks, then it will execute the import.

I've been happy with this method and haven't run into any problems with it.

* estimated guess, I haven't done any in depth studies on it, but I've worked on enough applications to know that it's pretty much everyone.

Posted 10-03-2006 12:18 AM by Stephen Wright
Filed under:



Rob Eisenberg wrote re: Scheduling the Import of data with ASP.NET
on 10-05-2006 7:11 AM

The source for ABTransClock is great.  I've used it on 2 projects myself.

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)