Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Trigger
Message
From
07/10/2009 02:07:52
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Environment versions
SQL Server:
SQL Server 2008
Application:
Desktop
Miscellaneous
Thread ID:
01427973
Message ID:
01427987
Views:
50
the id is the PK, i think i have to add a reference field tht will never change ....
Anyway a big thanks to you for your times & etcs...


>Do you have a PK in your table wich is never changed? If yes, then
>
>create trigger tr_Test_Update on Test for update as
>begin
>	update T set FollowID = I.ID from Test T 
>	inner join Deleted Del on T.FollowID = Del.ID 
>	inner join Inserted I on I.RealPK = Del.RealPK
>end
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform