Link to home
Start Free TrialLog in
Avatar of D524120
D524120

asked on

Fire trigger at certain time

I am using SQL Server v8.  In my web application and in the following scenario, is my solution possible?  If so, how would I do it?

A user wants to be notified 2 days before their membership expires.  I am gathering that I could fire a trigger at 1:00 am to search the DB, retrieve the users emails from the DB, and send an email through the DB.  I am assuming that SQL Server could fire the trigger at 1:00, run the query, and send a email.  Is this possible in SQL Server?  

I know the email part is possible in Oracle and I believe that Oracle can also fire a trigger at a certain time as well, but is it possible in SQL Server?  Is so, how?

I am not a DB wizard by any means, so have your answers fairly descriptive.

ASKER CERTIFIED SOLUTION
Avatar of mjm42
mjm42

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of D524120
D524120

ASKER

I discovered how to send a email http://support.microsoft.com/default.aspx?scid=kb;en-us;312839&sd=tech

Still looking for the answer to set a trigger to shoot off each day at a certain time.
Avatar of D524120

ASKER

To set the dates/times etc, one has to set the SQL Agent - Jobs.  Works great