SqlServer存储过程模板

create procedure [spname]([spvariable])
as
begin
 begin transaction
 begin try
  --具体sql过程
  commit;
 end try
 begin catch
  rollback;
 end catch
end

原文地址:https://www.cnblogs.com/theonewu/p/4045210.html