Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Trigger
Message
 
 
To
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:
01427989
Views:
49
You're welcome. Yes, an extra unique non-changable field will solve this problem.

>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
>>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform