Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update date to a current date in the event of value chan
Message
 
 
À
15/06/2010 19:51:25
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
01469101
Message ID:
01469169
Vues:
61
This message has been marked as the solution to the initial question of the thread.
>Hi All,
>I have "nStndCost" field, that holds a Standard Cost of the product, and dStndCost (smalldatetime) field in my "Inventory" table.I want to make sure that if the value of the "nStndCost" field is changed by anyone, the dStndCost field (smalldatetime) will change its value to the current date time.
>I cannot update field values it in the AFTER UPDATE trigger on the "Inventory" table. Where can I trigger the change?

The AFTER UPDATE trigger is only place where you can do that.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform