I came to know we can go for roll back transaction using "set xact_abort on" i want to know which is the better way for roll back transaction: use "set xact_abort on" or simple the following code
begin try
begin tran
-- statements
commit tran
end try
begin catch
rollback tran
end catch
Please help me to choose which is better approach while inserting number of records one time.