Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8242151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:04:16+00:00 2026-06-07T21:04:16+00:00

Does a rollback inside a INSERT AFTER or an UPDATE AFTER trigger rollback the

  • 0

Does a rollback inside a INSERT AFTER or an UPDATE AFTER trigger rollback the entire transaction or just the current row that is the reason for trigger, and is it same with Commit ?

I tried to check it through my current projects code which uses MSTDC for transactions, and it appears as if though the complete transaction is aborted.

If a Rollback in the trigger does rollback the entire transaction, is there a workaround for to restrict it just the current rows.

I found a link for sybase on this, but nothing on sql server

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:04:18+00:00Added an answer on June 7, 2026 at 9:04 pm

    Yes it will rollback the entire transaction.

    It’s all in the docs (see Remarks). Note the comment I’ve emphasised – that’s pretty important I would say!!

    If a ROLLBACK TRANSACTION is issued in a trigger:

    All data modifications made to that point in the current transaction
    are rolled back, including any made by the trigger.

    The trigger continues executing any remaining statements after the
    ROLLBACK statement. If any of these statements modify data, the
    modifications are not rolled back. No nested triggers are fired by the
    execution of these remaining statements.

    The statements in the batch after the statement that fired the trigger
    are not executed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to rollback a transaction which already committed, does JTA support this kind
Why transaction does not rollback Identity column. I have a table named DetailReports which
SharePoint does not provide transaction (rollback and commit) support on List data operations. What
Does anyone know, how can I rollback the already run stored prod inside try...catch
Consider the following code which does not rollback the transaction if an exception is
Just wondering, if I want to create a class that does something and I
Does a failed trigger cause a rollback in the subscriber AND the distributor? Or
If a class is marked as @Transactional, does that mean that the boilerplate: Transaction
Possible Duplicate: SQL Identity (autonumber) is Incremented Even with a Transaction Rollback does a
Does anyone have a translate function for x/y positions after rotation in javascript? for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.