Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A generic update log utility
Message
From
25/05/2009 03:35:26
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00691699
Message ID:
01401738
Views:
52
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform