T-SQL / SQL Server formatting
Transact-SQL (T-SQL) is Microsoft SQL Server's procedural SQL extension. It includes SQL Server-specific syntax like TOP, NOLOCK hints, square-bracket identifiers [like_this], DECLARE variables, BEGIN...END blocks, stored procedure syntax, and GO batch separators.
Using the T-SQL dialect ensures that SQL Server-specific constructs are correctly recognized and formatted β square bracket identifiers are preserved, TOP clauses are handled, and PRINT statements are formatted properly.
How to format T-SQL queries
- Paste your T-SQL query or stored procedure into the text area above.
- The formatter is pre-set to T-SQL dialect. Toggle UPPERCASE keywords as needed.
- Copy the formatted output with the Copy button or
Ctrl+K.