AMLabels
asked on
After Insert Trigger & Rollback
If a Stored Procedure contains an insert statement wrapped in a transaction and that transaction is rolled back in the procedure, does the after trigger still fire? Or is the trigger only called upon the commit statement?
Thanks.
Thanks.
ASKER
would the rowcount from the inserted table work to identify whether the stored procedure's insert had indeed been successful?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
begin transaction
insert into table ...
rollback
and the table has a insert trigger, the trigger WILL fire