fikir
Programmer
- Jun 25, 2007
- 86
I have one big proc which is inserting data to more than 15 tables. all the insertion is carried out in a single transaction. The problem is I have an error log table whch catches errors after each insertion.
my question is when the procedure is failing somewhere, I am not seeing any error logged into my error table
is this because when the procedure rolls back, it is also rolling the data inserted in my error table,
what is the best way to keep the errors in the error tables and rolls back the other,
do I have to create a inner transaction each time logging to the error table?
Thanks,
my question is when the procedure is failing somewhere, I am not seeing any error logged into my error table
is this because when the procedure rolls back, it is also rolling the data inserted in my error table,
what is the best way to keep the errors in the error tables and rolls back the other,
do I have to create a inner transaction each time logging to the error table?
Thanks,