Hello everyone,
Two basic questions about transactions,
1. For single SQL insert/update/delete statement, are there any needs or benefits to wrap into a transaction?
2. I wrote T-SQL like this,
[Code]
BEGIN TRY
Begin Transaction
...
commit
END TRY
BEGIN CATCH
rollback
...
END CATCH
[/Code]
my question is, is it a must to call commit explicitly just before end try statement? Any means to commit transaction automatically after end try statement?
regards,
George

Prashant13 reputationPosted Jan 16, 2009, 12:54 AM EST
Mirko Meier80 reputationPosted Feb 15, 2009, 10:50 AM EST
LisaRank #8,652 · 218 reputationPosted Feb 17, 2009, 1:26 AM EST
A commit is always necessary to update.
Thanks,
Lisa