Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>AAPSQLCodeQualityNew to Visual Studio Code? Get it now.
AAPSQLCodeQuality

AAPSQLCodeQuality

Acc_Vish

|
2 installs
| (0) | Free
Instant SQL syntax validation, performance analysis, and code style checks for stored procedures, views, functions, and triggers — no API key required.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SQL Code Quality

Instant SQL validation for your team — no API key, no setup, works offline.

Checks every .sql file for syntax errors, performance issues, and style problems the moment you save.


What It Checks

🔴 Syntax

Rule Severity
Unbalanced parentheses Error
Unclosed string literals Error
JOIN without ON clause (cross join risk) Error
WHERE 1=1 always-true condition Warning
Alias without AS keyword Warning

⚡ Performance

Rule Severity
SELECT * (avoid fetching all columns) Warning
NOT IN with subquery (use NOT EXISTS) Warning
Function in WHERE clause (blocks index) Warning
LIKE with leading wildcard (%value) Warning
Cursor usage (use set-based instead) Warning
Missing WITH (NOLOCK) on reads Info
SELECT DISTINCT overuse Info
ORDER BY column number Info

🎨 Code Style

Rule Severity
Lowercase SQL keywords Info
sp_ prefix on stored procedures Warning
Missing schema prefix (dbo.Table) Info
Missing SET NOCOUNT ON in procedures Warning
ISNULL vs COALESCE Info
Hardcoded dates Info
PRINT statements left in code Warning

How to Use

  • Auto-analysis on save — just save your .sql file and issues appear instantly
  • Right-click in the editor → SQL: Validate & Analyze Current File
  • View all issues in the Problems panel (Ctrl+Shift+M)
  • Status bar shows live count: $(database) SQL ❌2 ⚠️3 ℹ️5

Settings

Setting Default Description
sqlQuality.autoAnalyzeOnSave true Auto-run on every save
sqlQuality.enableSyntaxChecks true Toggle syntax rules
sqlQuality.enablePerformanceChecks true Toggle performance rules
sqlQuality.enableStyleChecks true Toggle style rules

Supported File Extensions

.sql .ddl .dml .proc .view .func .trg

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft