Trigger question using dates

Last post 08-27-2008, 5:30 AM by Mosser212. 2 replies.
Sort Posts: Previous Next
  •  08-26-2008, 11:29 AM Post number 69277

    Trigger question using dates

    Hi,

    I hope some kind soul can help me. I have a table with a date column holding a future date. I would like to have a trigger fire off if today's date has passed by this date and alter a text value of another column from a default of 'inside' to 'outside'. Does anyone have any suggestions on how to create this trigger?

    Sorry for the newbie question!! :)

    Thanks

    Mosser212

  •  08-26-2008, 11:35 AM Post number 69278 in reply to post number 69277

    • MVV is not online. Last active: 12-12-2008, 4:35 AM MVV
    • Top 25 Contributor
    • Joined on 04-29-2008
    • Alcoy, Spain
    • Level 2: Deep Blue

    Re: Trigger question using dates

    You'd better served with a programmed job at the 00:01 everyday , to check on that table if there are values wich require attention. A simple T-SQL would do then :)

    Hey , sysadm , leave the users alone
    They are nothing more
    than another brick in the firewall
  •  08-27-2008, 5:30 AM Post number 69287 in reply to post number 69278

    Re: Trigger question using dates

    Thanks for that, I'll do that!! :)

    Mosser212

View as RSS news feed in XML