XACT_ABORT in a stored procedure : XACT_ABORT « System Settings « SQL Server / T-SQL Tutorial






6> CREATE PROCEDURE NoRollback
7> AS
8> BEGIN
9>     SET XACT_ABORT ON
10>
11>     BEGIN TRANSACTION
12>         INSERT SomeData VALUES (1)
13>
14>         INSERT SomeData VALUES (1/0)
15>     COMMIT TRANSACTION
16> END
17> GO
1>








26.43.XACT_ABORT
26.43.1.Modifying exception types with XACT_ABORT
26.43.2.XACT_ABORT in a stored procedure
26.43.3.XACT_ABORT and transactions