I need to store an old and new record in audit table (Sybase)every time data changes. All changes are done using ExecuteNonQuery method passing SQL statement.
So if I need to "DELETE TABLE1 WHERE Value=a" I have to do
"SELECT * FROM TABLE1 WHERE Value=a" first and write result to an audit table. Is there an easier way to solve this problem?
So if I need to "DELETE TABLE1 WHERE Value=a" I have to do
"SELECT * FROM TABLE1 WHERE Value=a" first and write result to an audit table. Is there an easier way to solve this problem?