Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Triggers Expand / Collapse
Author
Message
Posted Friday, March 7, 2008 2:37 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 7, 2008 11:12 PM
Points: 1, Visits: 2
Hi All,

I have to check registration end date with system date,if it is getting expired then trigger should raise saying that your registration end date is expired and do u wish to renewal it r not. And mail should be sent to comapny email.


please could anyone help me out in writing trigger.


Regards,
Vinay.
Post #465682
Posted Friday, March 7, 2008 9:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, August 17, 2009 3:34 PM
Points: 9, Visits: 31
a "trigger" in SQL Server (and other RDBM systems I know) is fired on a database action like insert, update or delete.

I think your problem looks more like a batch job since you probably want to identify expired accounts without requiring an insert/update to fire the SQL trigger.

If my understanding is correct then you might consider creating a SQL Agent job to run periodically to query for expiring accounts and do the needful.
Post #465991
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse