Catch T-SQL mistakes as you type. This extension analyzes your .sql files in
real time and highlights design, naming, and performance issues right in the
editor — no build step required.
Features
Live squiggles — problems appear while you edit, just like compiler errors
100+ built-in rules — covering design best practices, naming conventions,
and performance pitfalls
Hover for details — hover over any squiggle to see the rule id, a plain
English description, and a link to the full documentation
Zero configuration — works out of the box with sensible defaults
Customizable — disable individual rules, promote warnings to errors, or
target a specific SQL Server version
Status bar indicator — shows when analysis is running
Target SQL Server version (Sql160, Sql170, SqlAzure, SqlDwUnified, …).
tsqlAnalyzer.debounceMs
400
Milliseconds to wait after the last keystroke before analyzing.
tsqlAnalyzer.additionalAnalyzers
Extra analyzer .dll paths to load (advanced).
tsqlAnalyzer.serverPath
Path to a local analyzer build (advanced — leave empty to use the published package).
Commands
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type T-SQL Analyzer:
T-SQL Analyzer: Analyze Active File — run analysis on demand.
T-SQL Analyzer: Restart Analysis Server — restart the background analyzer
process (useful after updating settings).
MCP Server
This extension also contributes the T-SQL Analyzer as an
MCP server, so you
can get feedback on your SQL code directly from GitHub Copilot Chat. It appears
automatically in the MCP server list — start it from there to enable the analyzer
tools in agent mode. No manual configuration is required (the MCP server is the
same analyzer tooling downloaded on first use, and requires VS Code 1.101+ and the .NET 10 SDK).