begin tran
begin try
insert into a(id) values('a')
insert into a1 values('sdf','adsf1212121',10012121)
commit tran
print'commit'
end try
begin catch
print'rollback'
rollback tran
end catch
Showing posts with label Transaction in sqlserver. Show all posts
Showing posts with label Transaction in sqlserver. Show all posts
Wednesday, April 28, 2010
Subscribe to:
Posts (Atom)