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.

  1. Handling Errors with TRY...CATCH and THROW Lesson 1
  2. Transactions, XACT_ABORT and Retry Logic Lesson 2
  3. Practise and review
  4. Test your knowledge 5 questions