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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
To set the dates/times etc, one has to set the SQL Agent - Jobs. Works great
ASKER
Still looking for the answer to set a trigger to shoot off each day at a certain time.