本帖最后由 giszmrr 于 2012-03-20 15:47:24 编辑

解决方案 »

  1.   


    在游标外面增加    begin transaction MonthRainfall 事物在insert和update后面,增加
    if @@error<>0
         begin 
             rollback transaction MonthRainfall
              raiserror 99999 '错误1'
             return -1
         end 在最后结尾增加    commit transaction MonthRainfall
    结束事物
    看看执行的错误是什么