Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 30th, 2007, 12:02 AM
Authorized User
 
Join Date: Oct 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Triggering -

Triggering -

Hello,

Need help :)

Herez the scenario:

I am maintaining a list of members of my site in a database. All members have an expiry date column in a table which is in mm/dd/yyyy format. I want that every members should be emailed on the day of their expiry automatically. I dnt wanna search for members and then mail then manually or if I m out on vacation it should do the work for me.

I have heard this can be done using triggers, but not sure how to use it.

Can u help me? also is there any other way apart from using triggers?


PS: Corn Jobs are not enabled in my webhost just in case if you are going to suggest me that. :)

Thanx in advance.



-----------------------------------------------
www.chargertek.in - Cheapest WebHosting
__________________
-----------------------------------------------
www.chargertek.in - Cheapest WebHosting
 
Old May 5th, 2007, 05:15 AM
Authorized User
 
Join Date: May 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Are you using SQL Server Database? If yes, here is the answer…

Write a “Stored Procedure” which queries the table and fetches the list of members whose account has expired today. Use cursor to loop through records and send out emails from SQL Server Database by creating object to the mail component. Now use SQL Job Scheduler to schedule and run the Stored Procedure once a day.

I hope this solves your problem.


Ragards,
Akash - The Sky





Similar Threads
Thread Thread Starter Forum Replies Last Post
CustomValidation not triggering jacob ASP.NET 1.x and 2.0 Application Design 2 December 1st, 2005 04:31 PM
triggering a code with the update in text file nav1 VB How-To 0 March 16th, 2005 03:03 PM
using triggers for triggering email event sopranos138 Classic ASP Basics 0 December 25th, 2004 01:30 PM
Triggering a javascript function badgolfer ASP.NET 1.0 and 1.1 Basics 1 June 30th, 2004 06:31 AM
Validation is not triggering bmains ASP.NET 1.0 and 1.1 Professional 2 February 11th, 2004 02:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.