------------------ -- Try & Catch --- ------------------ begin try begin tran -- running SQL Commands / Queries Commit Tran -- Commit Tran / Rollback Tran end try begin catch -- Managing Errors end catch; ------------------- --- Explanation --- ------------------- -- The TRY CATCH statement in Transact-SQL allows you to detect and handle error conditions gracefully within your database applications. -- This statement is the cornerstone of SQL Server error handling and is an extremely important part of developing robust database applications.