AI for SQL Server DBAs: Inside Microsoft's Official Repo
DBAs are increasingly being challenged to lean on AI a little more in their day-to-day work. If you've watched that push from a safe distance because you have zero interest in letting a chatbot create and execute T-SQL against a production SQL Server, you had good instincts. Paste a slow-query or blocking question into a blank chat window and you'll routinely get DMV columns that don't exist on your version, textbook queries that miss idle sessions holding open transactions, or confident suggestions to clear the plan cache or buffer pool mid-day.
Recently, Microsoft's SQL product team published an open-source GitHub repository called microsoft/microsoft-sql built to solve that exact problem. Instead of asking an AI model to invent SQL Server diagnostics from memory, the repo packages structured Markdown runbooks—including 47 SQL Server and Azure SQL administration skills—that tell a coding agent which tested queries to run and what it is never allowed to touch.
Before opening any T-SQL queries or connecting a lab server, I'll take a few minutes here to walk through how the repository is organized and focus on the plugin built specifically for DBA work.
What You Will Learn
- Skill vs. MCP server vs. plugin: a reference for what each piece actually does on disk and which piece can touch SQL Server.
- How the six plugins break down: which bundle is built for SQL Server DBAs versus application developers, and why installing all six together causes routing headaches.
- What the 47 skills inside
microsoft-sql-admincover: the main troubleshooting workflows included out of the box, with or without a live database connection.
1. Skill vs. MCP Server vs. Plugin
Before cloning microsoft/microsoft-sql, it helps to separate three AI terms that often get mashed together online—skills, MCP servers, and plugins—because each one plays a completely different role:
| Piece | Folder Structure | DBA Role | Can It Touch SQL Server By Itself? |
|---|---|---|---|
| Skill | skills/<name>/SKILL.md + references/ |
The Runbook: Markdown instructions and tested T-SQL queries that tell the AI how to investigate an issue and what rules never to break. | No. Plain text on disk—zero database or network access. |
| MCP Server | mcp.json (or mcp_config.json in Antigravity) |
The Database Bridge: A small local tool process holding your CONNECTION_STRING so the AI can run read-only queries or plan-analysis tools. |
Yes, when connected—though without a skill, the AI still guesses what SQL to write. |
| Plugin | plugins/<name>/plugin.json |
The Module Folder: Packages related skills (and optionally an MCP server config) into one unit you can install, enable, or disable together. | Only if it includes an enabled MCP server. |
Once you have those three roles straight, the repository layout makes immediate sense. There are no compiled binaries or hidden system prompts tucked inside the repo—each plugin under plugins/ is just a folder on disk combining those exact pieces:
plugins/
└── microsoft-sql-admin/ # Plugin (installable bundle)
├── plugin.json # Plugin manifest
├── mcp.json # Optional MCP server config (sql-tools)
└── skills/ # 47 DBA Skill folders (Markdown runbooks)
├── check-live-blocking/
│ ├── SKILL.md
│ └── references/
├── health-audit-sqlserver/
│ ├── SKILL.md
│ └── references/
└── ... (45 more DBA skills)Because Microsoft published these bundles using the open Agent Plugins 1.0 and Agent Skills specifications, they aren't locked to GitHub Copilot or SSMS. You can load the exact same folders in Copilot CLI, VS Code, Claude Code, OpenAI Codex, Cursor, Grok Build, and Google Antigravity.
To keep 47 runbooks from eating up your model's context window, agent hosts use progressive loading: at session startup, your agent reads only the short name and one-sentence description at the top of each SKILL.md file, then loads the full instructions and SQL queries when your question matches that topic.
2. What's in the Six Plugins
The repository acts as a multi-plugin catalog containing six separate packages totaling 175 skill folders (at the time of this post). Most of those bundles target application developers rather than DBAs:
| Plugin | Skills | Primary Focus | DBA Takeaway |
|---|---|---|---|
microsoft-sql-admin |
47 | SQL Server (2012–2025), Managed Instance, and Azure SQL diagnostics: waits, Query Store, blocking, deadlocks, backups, AG/HA, Agent jobs, and health audits | Start here. Built specifically for DBAs and troubleshooting. |
microsoft-sql |
54 | End-to-end Azure SQL Database app dev: drivers, Entra auth, EF Core/Prisma/SQLAlchemy, T-SQL, Data API Builder, vectors/RAG, and local containers | Useful only if you also build Azure SQL applications. |
microsoft-sql-migration |
12 | SQL Server to Azure assessments, SKU sizing, backup/restore to Azure VM, BACPAC to Azure SQL DB, and Log Replay Service to SQL MI | Handy if you are actively planning Azure migrations. |
microsoft-azuresqldb-container |
17 | Local dev and CI workflows using the Azure SQL Database container | Skip if microsoft-sql is installed (already bundled inside microsoft-sql). |
microsoft-sql-vscode |
44 | Azure SQL workflows tailored to the VS Code MSSQL extension | Pick either this or microsoft-sql, never both. Overlaps microsoft-sql-admin too. |
microsoft-sql-fdh |
1 | Read-only inventory, performance, and security posture in Fabric Database Hub | Skip unless your organization uses Fabric Database Hub. |
Avoid Installing Overlapping Bundles Together
In the repository's Choose a plugin guidance, Microsoft warns against installing overlapping plugins together. Because microsoft-sql already includes microsoft-azuresqldb-container and microsoft-sql-vscode duplicates skills from both microsoft-sql and microsoft-sql-admin, loading them side by side creates routing conflicts where duplicate skills compete for the same prompt. If you administer SQL Server on Windows, Azure VMs, or Managed Instance, install microsoft-sql-admin by itself first.
3. What microsoft-sql-admin Covers
Inside plugins/microsoft-sql-admin/, the 47 skills map directly to the diagnostic work that fills a DBA's week:
- Waits and server resource pressure: categorizing waits across CPU (
SOS_SCHEDULER_YIELD), memory grants and spills, data-file I/O (PAGEIOLATCH), and transaction log throughput (WRITELOGand VLF counts). - Live and historical concurrency issues: finding live head blockers and lock chains, investigating blocking incidents that already cleared, reading deadlock graphs, and generating targeted Extended Events sessions.
- Query Store, plan cache, and query tuning: spotting regressed or volatile plans in Query Store, diagnosing single-use plan cache bloat, analyzing
.sqlplanXML, evaluating missing-index suggestions, and rewriting non-SARGable predicates. - High availability, backups, and operations: checking Always On Availability Group sync and failover readiness, auditing SQL Server backup strategies against RPO targets, investigating failed SQL Server Agent jobs, and running bounded instance health audits.
Just as important is how flexibly those skills run. microsoft-sql-admin includes optional configuration for Microsoft's local SQL Tools MCP server, which adds live read-only query execution and execution-plan analysis. If you skip the MCP server entirely, the skills still work—falling back to sqlcmd or handing you the exact read-only T-SQL queries to run in SSMS and paste back for analysis. Everything in the bundle is scoped to interactive, read-only diagnosis on one server rather than making unattended changes across your environment.
Your 5-Minute Next Step
Take five minutes to open plugins/microsoft-sql-admin/README.md on GitHub and scan the table of 47 included skills. Pick the two troubleshooting tasks that eat up the most time on your team—whether that's live blocking, Query Store regressions, or SQL Agent job failures—and click into their SKILL.md folders to read the exact instructions and T-SQL queries yourself before installing anything.
And if you want to get notified in your inbox whenever a new post or video drops—along with practical SQL Server challenges and walk-throughs—sign up for free at DBAChallenges.com.
Prefer to watch the walkthrough? Watch it on YouTube.
Related Automation Guides
The "Hero DBA" Bottleneck: When Good PowerShell Scripts Trap Great Engineers
When you're the only person on your team who knows which switches to pass to your PowerShell scripts, new SQL Server builds wait until you're back from vacation. Here's how moving server knowledge into Ansible inventory (hosts.ini, group_vars, and host_vars) lets a teammate preview every change with --check --diff and configure a server without calling you.
Writing Idempotent PowerShell for SQL Server in Ansible
SqlServerDsc covers 80% of a SQL Server baseline, but what happens when you need custom PowerShell? Learn why raw win_powershell scripts break --check mode audits—and the 3 patterns to make custom SQL Server PowerShell 100% state-aware.
Why Ansible When I Have dbatools and PowerShell?
You don’t need to throw away 10 years of rock-solid PowerShell to get declarative scale.
Get Notified When New Posts & Videos Drop
Sign up for DBA Challenges to get notified in your inbox whenever a new SQL Server troubleshooting post, video, or real-world challenge goes live.