How to set XACT_ABORT within ADO.NET

岁酱吖の 提交于 2020-01-03 18:58:41

问题


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


回答1:


Execute SET XACT_ABORT ON or SET XACT_ABORT OFF.




回答2:


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.



来源:https://stackoverflow.com/questions/2277254/how-to-set-xact-abort-within-ado-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!