I am planing to use BackgroundWorker on my .net site to perform some database maintenance every night at 12:00. Is it a good idea to have asynch proccess monitoring time and perform action? I am using sql server express edition so i can’t use any scheduling on database side. I also don’t want to use windows task scheduler
Share
Why don’t you want to use the Windows scheduler? That’s the most obvious solution – you want to schedule something to happen on a regular basis, after all.
Otherwise, I’d suggest probably using a Windows Service and a timer (System.Timers.Timer or System.Threading.Timer). You’ll need to consider the possibility of daylight savings time and things like that – which is one reason to use the built-in scheduler.
I wouldn’t suggest that you make this part of an ASP.NET site. It’s too tricky (IMO) to think of all the corner cases around AppDomain recycling etc.