SET XACT_ABORT ON
程序员文章站
2024-01-17 08:23:16
...
SET XACT_ABORT ON时,在事务中,若出现错误,系统即默认回滚事务, 但只对非自定义错误有效 SET XACT_ABORT OFF,默认值,在事务中,回滚一个语句还是整个事务视错误的严重程序而定,用户级错误一般不会回滚整个事务 Q: you are writing a set of queries a
SET XACT_ABORT ON时,在事务中,香港虚拟主机,若出现错误,系统即默认回滚事务,但只对非自定义错误有效
SET XACT_ABORT OFF,默认值,在事务中,回滚一个语句还是整个事务视错误的严重程序而定,美国空间,用户级错误一般不会回滚整个事务
Q:you are writing a set of queries against a filestream-enabled database. you create a stored procedure that will update multiple tables within a transaction.you need to ensure that if the stored procedure raises a run-time error,the entire transaction is terminated and rolled back.which T-SQL statement should you include at the beginning of the stored procedure?
A:SET XACT_ABORT ON
,香港服务器租用推荐阅读
-
mysql通过find_in_set()函数实现where in()顺序排序
-
VBS教程:VBScript 语句-Property Set 语句
-
MongoDB Replica Set使用经验分享理论篇
-
魔术方法set 为何直接ECHO 无效呢?
-
[面向对象] 魔术方法 __set, __get, __unset, __isset
-
在Join中使用FIND_IN_SET
-
php调用存储过程返回结果集,解决cant return a result set in the given conte
-
java零基础的坎坷之路【33】——Set接口以及HashSet类相关功能
-
web test LoadRunner SAP / java / Java Vuser / web_set_max_html_param_len
-
php中的路径问题与set_include_path使用介绍_PHP教程