When is Trigger SQL server triggered After Insert?

Asked

Viewed 129 times

1

When a Trigger is fired after an Insert and the Insert is within a transaction, Trigger is executed at the time of the Insert or at the end of the transaction?

  • The Insert is is inside the transction;

  • 2

    At the time of INSERT. The transaction is only confirmed if all instructions INSIDE it are successfully completed. Ref: https://docs.microsoft.com/pt-br/sql/t-sql/language-elements/transactions-sql-data-warehouse

  • 1

    @That’s what Csorgo is all about. If I have the time and the willingness to give you the answer, mark me that I will vote for her

  • @Jeffersonquesado Ready. Thank you!

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.