Server: Msg 208, Level 16, State 1, Procedure testa, Line 8
Invalid object name 'testb'.
Server: Msg 266, Level 16, State 1, Procedure testa, Line 10
Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 1, current count = 2.
create table #Table1 (a tinyint)
go
begin tran
insert #table1 values(1) ----成功
insert #table1 values(1000) ----这句将报错
commit tran
go
select * from #table1
go
drop table #table1