Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Trigger
Message
 
 
À
07/10/2009 02:07:52
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Desktop
Divers
Thread ID:
01427973
Message ID:
01427989
Vues:
50
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform