Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Trigger
Message
De
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:
01427987
Vues:
49
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
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform