Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A generic update log utility
Message
De
25/05/2009 03:35:26
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00691699
Message ID:
01401738
Vues:
51
On the other point (creating a 1-row temp table ahead of the trigger)....that technique has been around for years.

If I know a client is using Windows Authentication, I know I can use system_user or related SQL functions....but if not....most tables I've worked with have always had a LastUserKey column that was populated as part of the UPDATE.....so I know I can read that from the row in the trigger, to get the user (if I want to write an an audit row)

Up until 2004, I used #temp tables quite a bit....I rarely use them today.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform