Neil Toulouse
Programmer
Hi guys!
We have a very basic audit log function within our system that simply records who/when/what screen and whether they Added/Deleted/Viewed etc a record, and what record (stores table and the primary key field).
What it doesn't do (and what is now being requested) is log any data that has been changed, as in from what value to what value.
To me this may end up being a major re-write of our data handling procedures, and a big system trawl to ensure all queries fall within the scope of the routines.
To avoid this I was thinking that maybe, we could simple capture and store the result of the initial query at the point of entry into the form (or search or whatever) as a string, and the SQL update string at the point of saving the record. Then create a screen that parses those two strings and shows what has changed.
Anyway, is this a way to do this or are there any better methods? Just after some hints and tips on how to handle this.
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...
We have a very basic audit log function within our system that simply records who/when/what screen and whether they Added/Deleted/Viewed etc a record, and what record (stores table and the primary key field).
What it doesn't do (and what is now being requested) is log any data that has been changed, as in from what value to what value.
To me this may end up being a major re-write of our data handling procedures, and a big system trawl to ensure all queries fall within the scope of the routines.
To avoid this I was thinking that maybe, we could simple capture and store the result of the initial query at the point of entry into the form (or search or whatever) as a string, and the SQL update string at the point of saving the record. Then create a screen that parses those two strings and shows what has changed.
Anyway, is this a way to do this or are there any better methods? Just after some hints and tips on how to handle this.
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...