views:

129

answers:

2

How can I set XACT_ABORT to ON (or OFF) from within ADO.NET ?

+5  A: 

Execute SET XACT_ABORT ON or SET XACT_ABORT OFF.

Remus Rusanu
+3  A: 

There is no client setting: in SQL As Remus said.

SET XACT_ABORT is not a property of the connection, command or transaction and can be set/unset at any time in SQL Code. There is no ado.net options for SET NOCOUNT ON etc.

gbn