If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > auto running "app"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-26-03, 19:54
ZeligOn ZeligOn is offline
Registered User
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 18
Lightbulb auto running "app"

Greeting all,

I need something that will run on my server
once every day, I need to query the DB,
also I can't use any *.exe or *.dll files,
currently using SQL Server 2k and ASP.

just a thought - should I use the SQL Trigger ?
__________________
Eddie.
Reply With Quote
  #2 (permalink)  
Old 02-26-03, 20:13
hktang hktang is offline
Registered User
 
Join Date: Nov 2002
Location: Singapore
Posts: 17
Re: auto running "app"

Basically you can use the SQL Server Agent to do the trick.
Schedule a job and fire the query in the job and it will run whenever you like

Quote:
Originally posted by ZeligOn
Greeting all,

I need something that will run on my server
once every day, I need to query the DB,
also I can't use any *.exe or *.dll files,
currently using SQL Server 2k and ASP.

just a thought - should I use the SQL Trigger ?
Reply With Quote
  #3 (permalink)  
Old 02-26-03, 20:24
ZeligOn ZeligOn is offline
Registered User
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 18
Question BUT . . .

Can I send an email thru the Agent ?

U C, I need to check every day witch user to charge,
if so than to charge his CC and send him an email.
__________________
Eddie.

Last edited by ZeligOn; 02-26-03 at 20:37.
Reply With Quote
  #4 (permalink)  
Old 02-26-03, 21:18
Bunce Bunce is offline
Registered User
 
Join Date: Jul 2002
Location: Australia
Posts: 147
Yes you can send email though the agent, as you would have found if you researched it yourself for 2 minutes.

Are you using a shared server as you will need to configure it.

Search SQL Books On Line for more info.

Another method is to use a sheduled task on the server if you have the permissions to set it up.

Cheers,
Andrew
__________________
There have been many posts made throughout the world.
This was one of them.
Reply With Quote
  #5 (permalink)  
Old 02-26-03, 21:43
ZeligOn ZeligOn is offline
Registered User
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 18
Arrow

Quote:
Originally posted by Bunce
Yes you can send email though the agent, as you would have found if you researched it yourself for 2 minutes.
I know that I can send an email
form the sql server but didn't explain my self good enough,
the thing is that I want to send an customized email
from my ASP, I need to know if there is a target that activate
my script on the server just like user is making a request..

also I can't configure the SQL Server or the
IIS Server as boat are sherd with others . . .
__________________
Eddie.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On