I'm trying to code a SQL Server 2000 trigger.
For each insert statement, I would like to log the inserted value into a log table, and then do some processing. How can I prevent the logging from being rolled back when the processing fails?
That's it seems I need an inner autonomous transaction to put the logging inside it. Is it doable with T-SQL on SQL Server 2000?
I hope the implementation does not cause too much overhead. Or if the processing fail, how can I gracefully manage it and do not make it rollback the origin insert. thanks