thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Data & Analytics · Foundational

Transact-SQL

Microsoft's SQL dialect for SQL Server, Azure SQL, Synapse and Fabric Warehouse, with procedural extensions.

Definition

T-SQL adds variables, control flow (IF, WHILE), TRY...CATCH error handling, TOP, temporary tables, and system functions to ANSI SQL. Fabric Warehouse and the SQL analytics endpoint support a subset of T-SQL.

Example

BEGIN TRY ... END TRY BEGIN CATCH SELECT ERROR_MESSAGE(); END CATCH

Exam tip

Microsoft exams use T-SQL syntax such as TOP, ISNULL and square-bracket identifiers.

Related terms