期间发生错误,在错误发生之前,所做的修改不会回滚。

解决方案 »

  1.   

    不会的我在asp里是这样用的
    strSql="....."
    cnn.execute strsql
    if cnn.Errors.Count>0 then
    cnn.Errors.Clear
    cnn.RoolBackTrans
    response.write "更新数据时出现错误,请重新提交"
    response.end
    end if
    strSql="......"
    cnn.execute strsql
    if cnn.Errors.Count>0 then
    cnn.Errors.Clear
    cnn.RoolBackTrans
    response.write "更新数据时出现错误,请重新提交"
    response.end
    end ifcnn.CommitTrans
      

  2.   

    看是什么级别的错误了。次要错误没什么影响。严重错误会中断事务。