Time of Day server side .asp file (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


bernieboy31 -> Time of Day server side .asp file (3/15/2008 6:22:58)

Gurus,

Anyone point me at a way of running a .asp file on my web server at a particular time of day to do some odds & sods of housekeeping routines?

TIA
Cheers
Bernie




rdouglass -> RE: Time of Day server side .asp file (3/15/2008 11:16:53)

If you have access to the server console, an Automated Task works well often. If not, what kind of DB are you running? SQL server has timed triggers.

Unfortunately ASP (and HTML for that matter) are 'stateless' in the sense that you can't easily tell them to do something at a specific time. They are re-active and not active.

Having said that, maybe you can give more particulars. If the scripts are not too heavy-duty, I've frequently just set a date field in a database and ran my 'housekeeping' scripts upon first use of a page each day.

If you have something that must run every day and/or must run at a specific time, that is usually unacceptable. Tell us more and we may be able to help.




bernieboy31 -> RE: Time of Day server side .asp file (3/17/2008 23:50:28)


quote:

ORIGINAL: rdouglass

If the scripts are not too heavy-duty, I've frequently just set a date field in a database and ran my 'housekeeping' scripts upon first use of a page each day.


DOH! That's a magic idea - I should have thought of that [8D]

I already have the dates the routines should run in a db and they take no time to complete.

problem solved [;)]

Thanks Roger !
Cheers
Bernie




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875