I have TABLE_A and on another database I Have TABLE_B. There is a trigger on TABLE_A to replicate insertions from TABLE_A to TABLE_B. If something fails on the trigger the insertions on TABLE_A should not fail (I have no control over TABLE_A, columns can be removed or renamed, etc…).
I’m working with SQL Server 2005.
I’ve tryed TRY … CATCH but it didn’t work.
Thanks.
Using triggers – is an atomic operation – it can either complete without errors or fail the whole operation (INSERT+trigger). Try to use other variants, such as using SP for adding records to tables.