Does Microsoft SQL Server implement the Transact-SQL language (commonly abbreviated as T-SQL) for querying and procedural logic?

Database SQL Server 2000 Difficulty: Easy
Choose an option
  • A
    Correct
  • B
    Incorrect
  • C
    Only Azure SQL uses T-SQL; on-prem uses ANSI-SQL only
  • D
    Only DDL is T-SQL; DML is not
  • E
    T-SQL is a deprecated term

Answer

Correct Answer: Correct

Explanation

Introduction / Context:Each major RDBMS adds extensions to the SQL standard. Microsoft SQL Server’s dialect is Transact-SQL (T-SQL), used across on-premises SQL Server, Azure SQL Database, and Azure SQL Managed Instance with minor differences by version.

Given Data / Assumptions:

  • We refer to Microsoft’s SQL Server family.
  • T-SQL covers DDL, DML, and procedural constructs.
  • Basic ANSI SQL is a subset within T-SQL.

Concept / Approach:T-SQL extends the SQL standard with procedural programming (BEGIN…END, variables, control flow), error handling (TRY…CATCH), system functions, windowing enhancements, and engine-specific features (e.g., OUTPUT clause, MERGE behavior specifics). Understanding T-SQL is core to development and administration in SQL Server.

Step-by-Step Solution:Write DDL: CREATE TABLE, CREATE INDEX;Write DML: SELECT/INSERT/UPDATE/DELETE enriched with T-SQL features (TOP, OUTPUT);Use procedural logic: DECLARE @i int; WHILE; TRY…CATCH;Invoke built-ins: e.g., STRING_SPLIT, JSON_VALUE (version-dependent).

Verification / Alternative check:Official documentation and SSMS templates use T-SQL syntax and terminology consistently.

Why Other Options Are Wrong:Azure SQL and on-prem both use T-SQL. DDL/DML division does not change the dialect. T-SQL is not deprecated.

Common Pitfalls:Assuming portability of T-SQL code to other vendors without changes; relying on non-portable features.

Final Answer:Correct

Discussion & Comments
No comments yet. Be the first to comment!
Join Discussion