Programmability
- π§ Variables & Expressions β DECLARE, SET vs SELECT assignment, expressions.
- π§ Stored Procedures β Input/output params, RETURN, OUTPUT.
- π§ Functions: Scalar vs TVF β Scalar UDF, inline TVF, multi-statement TVF (perf notes).
- π§ TVPs (Table-Valued Parameters) β Table types and passing sets to procedures.
- π§ TRYβ¦CATCH & XACT_STATE() β Error handling patterns for robust T-SQL.