Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging deletions

Status
Not open for further replies.

Elroacho

Programmer
Apr 19, 2004
59
NZ
Does anyone know how to log when a record has been deleted from a table. I'm using Interbase 7 and I need to know who, when and what if possible.

Cheers.
 
I'm not sure this is what I'm after. The reponse on the post you are refering to helped me with what I wanted then but this is a different situation. What I need is a log that is created when a user deletes a recored from a given table. I know I could write a trigger for the delete on that table and just copy the recdord to a new table but I dont know how I would capture who made the delete.

Any thoughts.......

Cheers.
 
I have separate log tables , with extra columns updated from system variables current_user, current_timestamp
 
So Basically I can write a trigger on the table I want to watch, and copy the deleted record along with the above metioned variables. Sweet! I'll give it a try.

Cheers,
YNWA,
Kevin.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top