RE: I'm not Trigger happy :-)
From: Mal .mullerjannie_at_hotmail.com> (.mullerjannie_at_hotmail.com)
Date: 11/01/04
- Next message: Hugo Kornelis: "Re: Why data could not be committed into table?"
- Previous message: abhisshek_s_at_yahoo.com: "Re: sproc problem with ASP"
- In reply to: mekim: "I'm not Trigger happy :-)"
- Next in thread: mekim: "RE: I'm not Trigger happy :-)"
- Reply: mekim: "RE: I'm not Trigger happy :-)"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Nov 2004 02:00:02 -0800
Why not use identity column or computer columns ?
"mekim" wrote:
> I am writing my first trigger in the example listed below ...and I'm getting
> lost in something...so thx for any assistance
>
> -I am trying to update a field called RecordVersion any time there is an
> update to the table
>
> -I realize that the code below is "wrong" ...but I don't see how u can pin
> point the row that is being updated from the trigger call
>
> -And I wonder what happens when this trigger fires the same trigger each
> time the update is called on "RecordVersion"
>
> Big TIA
>
> ALTER TRIGGER UpdateTrigger
> ON dbo.Table1
> FOR UPDATE
> AS
> UPDATE Table1 SET RecordVersion = RecordVersion + 1
>
>
- Next message: Hugo Kornelis: "Re: Why data could not be committed into table?"
- Previous message: abhisshek_s_at_yahoo.com: "Re: sproc problem with ASP"
- In reply to: mekim: "I'm not Trigger happy :-)"
- Next in thread: mekim: "RE: I'm not Trigger happy :-)"
- Reply: mekim: "RE: I'm not Trigger happy :-)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|