We have a system that has both a .NET and SQLServer component. The .NET component is responsible to start the process and enclose the calls to stored procedures in a transaction.
That process is done using mostly stored procedures on the database, which all write to our own log table.
Now, the problem is that the transaction, being started in the .NET code, will be enclosing all others that are used in the database code, and if one of the child transactions rolls back the log table is gone.
Is there any way to keep the logs, rolling back everything else?
Thanks in advance.