raiserror 是进行错误提示的 begin tran 语句if @@error<>0 raiserror('语句未正常执行.请检查',16,1)rollback tran //回滚操作.else commit tran