What is the purpose of the SQL Server TRY...CATCH block?
A. Execute a set of statements in a loop
B. Handle exceptions and errors in a controlled manner
C. Define a cursor for record processing
D. Create a temporary table
The TRY...CATCH block is used to handle exceptions and errors in a controlled manner in SQL Server.