DP-800
Introduction to Error Handling in T-SQL
TRY...CATCH, THROW, transaction state with XACT_ABORT and XACT_STATE, and retry logic for transient errors.
- 2 lessons
- Module quiz
Robust database code catches errors, keeps transactions consistent and tells callers what went wrong.
What the exam expects
Questions test TRY...CATCH, THROW, the error functions, SET XACT_ABORT ON, XACT_STATE and retry logic for deadlocks and transient errors.
How this module is organized
Handling Errors with TRY...CATCH and THROW covers catching and raising errors. Transactions, XACT_ABORT and Retry Logic covers transaction state and retries.