• samsqlserver (12/22/2008)


    I am wondering how you can write a trigger that would be fired before inserting/updating rows into a table.

    If i am not wrong a trigger will fire either after or instead of the event that actually fired the trigger.

    Yes, you are correct Sam. The OP would have to use an INSTEAD OF trigger and then do the actual insert/update themselves.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]