Skip to content
VS Code

SqlServer.Rules for VS Code

io.github.erikej/sqlserver.rules

Analyze T-SQL scripts for design, naming, and performance issues and prevent bad practices.

client:VS Code transport:stdio runtime:nuget

Install SqlServer.Rules in VS Code

.vscode/mcp.json

{
  "servers": {
    "sqlserver.rules": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "ErikEJ.DacFX.TSQLAnalyzer.Cli",
        "--yes"
      ]
    }
  }
}

Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs

SqlServer.Rules in other clients