robsuttonjr
MIS
I need to log changes to all fields for a particular table. Example, I have a table with Name, PO_Number, Unit_Cost, Comments, when values are updated/inserted/deleted I want to insert the previous and new value in a log table with the datetime & user_id for each field. Any thoughts on how to do this?
It would look something like:
Field_name Previous_Value New_Value User Date
Name Roberta Roger sa 10/10/03
Unit_Cost 12.00 30.04 jj 10/10/03
PO_Number 34334 223433 ss 10/10/03
Unit_Cost 30.04 40.00 kk 10/20/03
Any ideas on how to best do this without huge cost?
It would look something like:
Field_name Previous_Value New_Value User Date
Name Roberta Roger sa 10/10/03
Unit_Cost 12.00 30.04 jj 10/10/03
PO_Number 34334 223433 ss 10/10/03
Unit_Cost 30.04 40.00 kk 10/20/03
Any ideas on how to best do this without huge cost?