<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: What low severity errors let transactions complete even though a statement didn't execute in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495258#M4949535</link>
    <description>Hi Ben, see the various ARITHABORT options for some settings that will cause a statement to abort without causing the transaction to fail.&lt;A href="https://help.sap.com/docs/SAP_ASE/b65d6a040c4a4709afd93068071b2a76/aa155b78bc2b10148e18fd231208083b.html?q=statement+abort&amp;amp;locale=en-US&amp;amp;version=LATEST" target="_blank"&gt;https://help.sap.com/docs/SAP_ASE/b65d6a040c4a4709afd93068071b2a76/aa155b78bc2b10148e18fd231208083b.html?q=statement+abort&amp;amp;locale=en-US&amp;amp;version=LATEST&lt;/A&gt;</description>
    <pubDate>Wed, 30 Sep 2026 23:21:42 GMT</pubDate>
    <dc:creator>Bret_Halford</dc:creator>
    <dc:date>2026-09-30T23:21:42Z</dc:date>
    <item>
      <title>What low severity errors let transactions complete even though a statement didn't execute</title>
      <link>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaq-p/14495241</link>
      <description>&lt;P&gt;Given a transaction batch like this:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;begin transaction
insert into mytable (id) values (1)
insert into mytable (id) values (2) -- error occurs here
insert into mytable (id) values (3) 
commit transaction&lt;/LI-CODE&gt;&lt;P&gt;I'm pretty sure there are some low severity errors where, if they occur in the 2nd insert, the transaction will complete (commit) but with the row with id=2 missing (not inserted)&lt;/P&gt;&lt;P&gt;My question is, where is the documentation for this error severity transaction interaction?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;BR /&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2026 21:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaq-p/14495241</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2026-09-30T21:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: What low severity errors let transactions complete even though a statement didn't execute</title>
      <link>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495256#M4949534</link>
      <description>Hi Ben, one place that comes to mind is the documentation for @@transtate. Very robust code will check @@transtate after each command and react according to the result. State 2 corresponds to the statement aborting without affecting the transaction.&lt;A href="https://help.sap.com/docs/SAP_ASE/b65d6a040c4a4709afd93068071b2a76/aa7e5c47bc2b10148927d989297c8592.html?q=%40%40transtate&amp;amp;locale=en-US&amp;amp;version=LATEST" target="_blank"&gt;https://help.sap.com/docs/SAP_ASE/b65d6a040c4a4709afd93068071b2a76/aa7e5c47bc2b10148927d989297c8592.html?q=%40%40transtate&amp;amp;locale=en-US&amp;amp;version=LATEST&lt;/A&gt;</description>
      <pubDate>Wed, 30 Sep 2026 22:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495256#M4949534</guid>
      <dc:creator>Bret_Halford</dc:creator>
      <dc:date>2026-09-30T22:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: What low severity errors let transactions complete even though a statement didn't execute</title>
      <link>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495258#M4949535</link>
      <description>Hi Ben, see the various ARITHABORT options for some settings that will cause a statement to abort without causing the transaction to fail.&lt;A href="https://help.sap.com/docs/SAP_ASE/b65d6a040c4a4709afd93068071b2a76/aa155b78bc2b10148e18fd231208083b.html?q=statement+abort&amp;amp;locale=en-US&amp;amp;version=LATEST" target="_blank"&gt;https://help.sap.com/docs/SAP_ASE/b65d6a040c4a4709afd93068071b2a76/aa155b78bc2b10148e18fd231208083b.html?q=statement+abort&amp;amp;locale=en-US&amp;amp;version=LATEST&lt;/A&gt;</description>
      <pubDate>Wed, 30 Sep 2026 23:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495258#M4949535</guid>
      <dc:creator>Bret_Halford</dc:creator>
      <dc:date>2026-09-30T23:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: What low severity errors let transactions complete even though a statement didn't execute</title>
      <link>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495687#M4949579</link>
      <description>&lt;P&gt;Re: "very robust code will check @@transtate after each command and react according to the result".&lt;/P&gt;&lt;P&gt;Ok, that's interesting, thanks.&amp;nbsp; Sort of a pain to do though&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2026 14:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495687#M4949579</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2026-10-01T14:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: What low severity errors let transactions complete ev...</title>
      <link>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495691#M4949581</link>
      <description>&lt;P&gt;I also found this web page&lt;/P&gt;&lt;P&gt;Transact-SQL Users Guide -&amp;gt; Transactions: Maintain Data Consistency and Recovery -&amp;gt; Transactions in Stored Procedures and Triggers -&amp;gt; &lt;A href="https://help.sap.com/docs/SAP_ASE/b65d6a040c4a4709afd93068071b2a76/aaa79be3bc2b10149aa5e98b73f20007.html?locale=en-US&amp;amp;version=LATEST" target="_self"&gt;Errors and Transaction Rollbacks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which says (square brackets are my annotation):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;Errors in data modification commands that affect data integrity [where a statement fails but doesn't abort the transaction] :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Arithmetic overflow and divide-by-zero errors (effects on transactions can be changed with the set arithabort arith_overflow command)&lt;/LI&gt;&lt;LI&gt;Permissions violations&lt;/LI&gt;&lt;LI&gt;Rules violations&lt;/LI&gt;&lt;LI&gt;Duplicate key violations&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Granted, this is in a "Stored Procedures and Triggers" section, but I think it applies to transactions outside of stored procs and transactions too.&lt;/P&gt;&lt;P&gt;But, the behavior is slightly different in a trigger!&amp;nbsp; From the same web page:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;With duplicate key errors and rules violations, the trigger completes (unless there is also a return statement), and statements such as print, raiserror, or remote procedure calls are performed. Then, the trigger and the rest of the transaction are rolled back, and the rest of the batch is aborted.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 01 Oct 2026 14:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-low-severity-errors-let-transactions-complete-even-though-a-statement/qaa-p/14495691#M4949581</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2026-10-01T14:54:38Z</dc:date>
    </item>
  </channel>
</rss>

