在事务语句最前面加上 set xact_abort on GO SET QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[test] @a int, @b int, @c int, @d int, @e int, @f int AS set xact_abort on begin tran insert into testtb values(@a,@b,@c,@d) insert into test4 values(@e,@f) commit tra