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/).
is my ssis sql script component by default running as a transaction?
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
Developer technologies Transact-SQL
9 additional answers
Sort by: Most helpful
-
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.