at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplicati
代码如下: create procedure test_tran as set xact_abort on —–用error判断,对于严重的错误,系统根本就不会执行随后对error的判断,会直接终止执行。所以设置set xact_abort on 是必要的 BEGIN TRANSACTION RemoteUpdate insert psn_degree values(22,’test’) select 1/0 IF error !=0 BEGIN ROLLBACK TRANSACTION Rem