CassidyHunt
IS-IT--Management
I need a generic trigger that I can place on any table that will write to an audit table the following:
table_name
column_name
user_id
old_value
new_value
change_date
I am picturing a loop to loop through the columns of the table and any column that doesn't match the old value be recorded in this table. I am not quite sure on the syntax.
Hopefully I explained this right.
thanks for the help in advance.
Cassidy
table_name
column_name
user_id
old_value
new_value
change_date
I am picturing a loop to loop through the columns of the table and any column that doesn't match the old value be recorded in this table. I am not quite sure on the syntax.
Hopefully I explained this right.
thanks for the help in advance.
Cassidy