H
honzas
A disccussion on this topic (how to perform rollback from CLR trigger)
went here last year.
(http://groups.google.com/group/micr...=CLR+trigger+rollback&rnum=1#698222981b1d15b6)
Pablo Castro (and also some MSDN articles) was answering:
I tryed it but I'm still recieving following error message:
System.Data.SqlClient.SqlException: Transaction is not allowed to roll
back inside a user defined routine, trigger or aggregate because the
transaction is not started in that CLR level. Change application logic
to enforce strict transaction nesting.
What am I doing wrong?
Jan Sotola.
went here last year.
(http://groups.google.com/group/micr...=CLR+trigger+rollback&rnum=1#698222981b1d15b6)
Pablo Castro (and also some MSDN articles) was answering:
Try:
System.Transactions.Transaction.Current.Rollback();
That should do it for your scenario.
I tryed it but I'm still recieving following error message:
System.Data.SqlClient.SqlException: Transaction is not allowed to roll
back inside a user defined routine, trigger or aggregate because the
transaction is not started in that CLR level. Change application logic
to enforce strict transaction nesting.
What am I doing wrong?
Jan Sotola.