is my ssis sql script component by default running as a transaction?

db042190 1,521 Reputation points
2021-03-04T15:04:53.203+00:00

hi we run 2014 enterprise. one of my sql scripts contains 2 updates and about 10 inserts.

i'm looking at its properties and 2 stand out, iso level serializable and tran option supported.

by any chance is this running as a single tran or do i need to wrap it in a tran or change the properties to accomolish that? I want it to roll back if there is a failure.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
Developer technologies Transact-SQL
{count} votes

Accepted answer
  1. Russel Loski 421 Reputation points
    2021-03-10T01:49:49.74+00:00

    By default the Execute SQL task script doesn't create transaction. My suggestion is that if you need a transaction use normal SQL transaction handling (try catch, commit transaction, rollback, and set xact_abort on https://sqlskull.com/2020/02/22/sql-server-set-xact_abort/).

    0 comments No comments

9 additional answers

Sort by: Most helpful
  1. db042190 1,521 Reputation points
    2021-04-03T12:14:07.157+00:00

    thanks erland and russel. it looks like my bad memory was confusing arithabort and xact_abort.

    the former is the one that affects reads/writes etc that involve indexes with computed columns. and i'm not even sure it can affect things in more recent versions of sql (90 and beyond) even if explicitly set off.

    my apologies.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.