Gopinath Sundharam
05-10-2002, 10:02 PM
Hello Folks:
Using ASP and Windows 2000.
I need to execute a chunk of code (which access a database and sends emails).
This chunk of code has to get executed say every 30 minutes. So I have two
choices now..
(1) Write a VB Script or Java Script file and schedule it using Task Scheduler
to run every 30 minutes. Then write the chunk of code in this script file.
Easy way.. isn't?
This might inturn pop up lot of security problems and more over all the requests
to the database won't be thru' the IIS web server and not using the same
anonymous user. The script file will be run in a different context which
I don't want to.
(2) So the next solution would be is to write the same chunk of code in an
ASP page.. and some how execute it. How to execute this from an outside program..
without the web browser. There is a way in which we can create an IE browser
object from the script file and execute the ASP page. But this won't work
if IE is not installed. ;) Users can remove IE.. you see.
So is there any other way (other than the 2 mentioned above) to accomplish
this.
I would really appreciate if any one can help.
Thanks.
-- Gopi
Using ASP and Windows 2000.
I need to execute a chunk of code (which access a database and sends emails).
This chunk of code has to get executed say every 30 minutes. So I have two
choices now..
(1) Write a VB Script or Java Script file and schedule it using Task Scheduler
to run every 30 minutes. Then write the chunk of code in this script file.
Easy way.. isn't?
This might inturn pop up lot of security problems and more over all the requests
to the database won't be thru' the IIS web server and not using the same
anonymous user. The script file will be run in a different context which
I don't want to.
(2) So the next solution would be is to write the same chunk of code in an
ASP page.. and some how execute it. How to execute this from an outside program..
without the web browser. There is a way in which we can create an IE browser
object from the script file and execute the ASP page. But this won't work
if IE is not installed. ;) Users can remove IE.. you see.
So is there any other way (other than the 2 mentioned above) to accomplish
this.
I would really appreciate if any one can help.
Thanks.
-- Gopi