Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a log of all updates...
Message
From
11/03/2003 09:53:45
 
 
To
11/03/2003 09:24:17
Eudoxio Junior
Hospital Sao Marcos
Teresina, Brazil
General information
Forum:
Microsoft SQL Server
Category:
Security
Miscellaneous
Thread ID:
00764180
Message ID:
00764207
Views:
20
Also, if you look at the other thread I started in SQL Syntax section on 'Self Join-challenge' this discusses using a self-join on the audit table to get the previous audit record for the specific primary key. Once you have that, you can compare old value to new value, and if they are different, then you know you have a change.

BOb


>Hi everyone...
>I've a table that is used as log of updates made in other tables by the users through the applications... Triggers were created in every single table I'd like to have update control... Today I know the moment that a table was modified and who (user) did it... But I also need to know which columns where modified and this is my problem... If I put a UPDATED() statement inside the trigger i think maybe my application will loose performance (because i will fill it with IFs)... Does anybody know how to log changes made in a table and in its columns? Has someone done this yet?
>
>Thankz...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform