claudecodex

Microsoft SQL administration

Diagnose and administer SQL Server, Azure SQL Database, Azure SQL Managed Instance, and Fabric SQL databases, including performance and wait analysis, Query Store and execution plans, blocking and deadlocks, backup and recovery, high availability and disaster recovery, security, schema health, and SQL Server Agent jobs.

69 on GitHubby Microsoftv1.0.0updated 12 days agoDatabases
/

Plugin microsoft-sql-admin from marketplace microsoft-sql in microsoft/microsoft-sql. Commands read from the repo's manifest — 3 days ago.

This plugin runs code on your machine — it starts local MCP servers. The exact commands are listed below; read them before installing.

What it installs

Skills (47)

  • active-connections

    Use when the user asks who is connected, which sessions are idle or hold the oldest open transaction, or how connections split by login or app. If a client can't connect, use `connectivity-troubleshoot`.

  • always-encrypted-columns

    Use when the user asks which plaintext columns can or should use Always Encrypted, or why a column is disqualified. Eligibility only: not for listing already-encrypted columns or their keys.

  • authentication-diagnostics

    Use when a login fails (18456, 'Login failed for user'), a user can't open a database, a permission is denied, or an Entra or managed identity login fails. For network errors, use `connectivity-troubleshoot`.

  • backup-history-azuresql

    Use when the user asks for backup history, the latest backups or backup retention on Azure SQL Database or Fabric SQL Database. For SQL Server or Managed Instance, use `backup-strategy-sqlserver`.

  • backup-strategy-sqlserver

    Use when the user asks to review or design a SQL Server or Managed Instance backup strategy, or whether the recovery model and backup schedule meet an RPO. For Azure SQL Database, use `backup-history-azuresql`.

  • blocking-root-cause-analysis

    Use when the user asks what caused blocking that already ended (yesterday's incident, intermittent lock waits) or who is behind a supplied blocking chain. For blocking happening now, use `check-live-blocking`.

  • check-live-blocking

    Use when queries hang right now: who is blocking, the head blocker, why a blocking DMV looks empty. Has tested queries and rules common answers miss, e.g. a sleeping head blocker is absent from sys.dm_exec_requests. For past blocking, use `blocking-root-cause-analysis`.

  • code-analysis

    Use when the user asks to review, fix, explain or refactor T-SQL or a stored procedure without running it, incl. injection and SARGability. Has tested checks common answers miss, e.g. compile against the live schema with SET NOEXEC. For a cost-validated rewrite, use `query-rewrite`.

  • connectivity-troubleshoot

    Use when a client can't connect or gets a connection error (timeout, 53/10060/10061, SQLSTATE 08001, TLS, firewall 'IP not allowed', 4060). For login or permission issues, use `authentication-diagnostics`.

  • create-xe-session

    Use when the user wants an Extended Events session to capture slow queries, deadlocks or blocking over hours or days, or an XE ring buffer stays empty. To explain a captured deadlock, use `deadlock-analysis`.

  • database-config-azuresql

    Use when the user asks to review an Azure SQL Database's configuration: service tier, service objective, compute tier, vCores, MAXDOP or connection string. For options like recovery model, use `database-settings-review`.

  • database-settings-review

    Use when the user asks to review a database's options: recovery model, AUTO_CLOSE, RCSI, compatibility level, Query Store, scoped configurations. For Azure SQL service tier, use `database-config-azuresql`.

  • deadlock-analysis-azuresql

    Use when the user asks about deadlocks, deadlock history or prevention on Azure SQL Database or Fabric SQL Database. For SQL Server, Managed Instance or a supplied deadlock XML, use `deadlock-analysis`.

  • deadlock-analysis

    Use when the user asks about deadlocks or deadlock history on SQL Server or Managed Instance, or to explain a supplied deadlock graph or XML. For Azure SQL Database, use `deadlock-analysis-azuresql`.

  • geo-dr-assessment-health-check

    Use when the user asks whether geo-replication or a failover group is healthy and ready for a planned failover (GO/NO_GO), or what the geo-DR RPO/RTO is. For lag happening now, use `investigate-geo-dr-issues`.

  • ha-assessment-health-check

    Use when the user wants a proactive Always On availability group health check before an audit, go-live or change: sync, listeners, failover readiness. For an active incident, use `investigate-ha-issues`.

  • health-audit-sqlserver

    Use when the user asks for a health audit of a SQL Server or Managed Instance (not Azure SQL Database): what is failing or risky now: availability, integrity, resources, storage, backups, HA, jobs, security.

  • improve-query-performance

    Use when the user asks to optimize, tune, speed up or improve a specific SQL query ('make this faster'), with or without a plan; default when no technique is named. For a rewrite only, use `query-rewrite`.

  • investigate-geo-dr-issues

    Use when a geo-secondary lags behind the primary right now, a geo-replication link is suspended, or a failover group fails over unexpectedly. For a readiness check, use `geo-dr-assessment-health-check`.

  • investigate-ha-issues

    Use when an availability group has sync or failover problems: replica suspended, NOT SYNCHRONIZING or RESOLVING, growing redo queue, lease timeout, failed seeding. For a readiness check, use `ha-assessment-health-check`.

  • investigate-sql-cpu-pressure

    Use when CPU is high on SQL Server or Azure SQL (alerts, throttling, SOS_SCHEDULER_YIELD waits) and the user wants the queries responsible. For a broad resource snapshot, use `resource-usage-sqlserver`.

  • investigate-sql-data-io-pressure

    Use when data-file reads are slow or heavy: PAGEIOLATCH waits, high read latency, many physical reads, Azure SQL data IO throttling. For WRITELOG or log latency, use `investigate-sql-log-io-pressure`.

  • investigate-sql-log-io-pressure

    Use when commits are slow or log writes lag: WRITELOG waits, high log write percent, log throughput throttling, too many VLFs. For PAGEIOLATCH or data-file reads, use `investigate-sql-data-io-pressure`.

  • investigate-sql-memory-issues

    Use when queries wait on memory grants (RESOURCE_SEMAPHORE), spill to tempdb, hit out-of-memory errors (701, 802, 8645), or PLE drops. For a broad resource snapshot, use `resource-usage-sqlserver`.

  • investigate-statistics-issues

    Use when row estimates are far from actual rows, statistics may be stale, or the user asks which to update or if auto-update keeps up. Has tested queries and rules common answers miss, e.g. the sqrt threshold needs compat level 130+. For missing indexes, use `missing-index-analysis`.

  • ledger-tables

    Use when the user asks about ledger tables: whether ledger fits a tamper-evidence need, creating updatable or append-only ones, or listing them and their history. SQL Server 2022+ and Azure SQL Database.

  • missing-index-analysis

    Use when the user asks which indexes are missing, whether a table needs one, or whether index suggestions are worth creating. Has tested queries and rules common answers miss, e.g. rank suggestions by seeks x cost x impact. Not for Synapse dedicated pools.

  • partitioned-tables

    Use when the user asks about partitioned tables: skew or hot partitions, boundaries or missing future partitions, per-partition fragmentation, index alignment, or partition elimination.

  • plan-analysis

    Use when the user supplies an execution plan (showplan XML, .sqlplan) or asks to explain or check one: costly operators, spills, misestimates. Has tested rules common answers miss, e.g. subtree costs are inclusive. For end-to-end tuning, use `improve-query-performance`.

  • plan-cache-analysis

    Use when the user asks about plan cache bloat, single-use or ad hoc plans, poor plan reuse, SET option pollution or parameter sniffing suspects. For one query's plans, use `plan-cache-qds-bridge`.

  • plan-cache-qds-bridge

    Use when the user needs one query's cached plan and Query Store history, by text, query_hash, query_id or plan handle, including a query gone from cache. For cache-wide bloat, use `plan-cache-analysis`.

  • query-hint-tuning

    Use when the user wants to try query hints on a slow SELECT: compare join, parallelism or cardinality estimation hints by estimated cost or measured runtime. For a hint-free rewrite, use `query-rewrite`.

  • query-rewrite

    Use when the user explicitly asks to rewrite or restructure a SQL query or predicate, e.g. make a WHERE clause SARGable, keeping results and NULL semantics. For 'make this faster', use `improve-query-performance`.

  • query-store-investigation

    Use when the user asks for top or regressed queries in Query Store: what got slower since a deploy versus a baseline, or which earlier plan to force. When Query Store is off, use `top-queries-noqds`.

  • query-store-volatile-historical-slow-queries-comparison

    Use when queries have erratic durations in Query Store, the user wants one query_id's timeline, or suspects parameter sniffing or failing forced plans. For baseline regressions, use `query-store-investigation`.

  • resource-usage-sqlserver

    Use when many queries time out under load, or SQL Server or Azure SQL is slow overall and it's unclear whether CPU, memory, IO, TempDB or disk is the cause. For one slow query, use `slow-query-investigation`.

  • schema-design-guidance

    Use when the user asks to design or review tables or a proposed schema: keys, constraints, normalization, computed columns, full-text, DDL validation. For heaps or disabled indexes, use `table-health-check`.

  • slow-query-investigation

    Use when one specific query got slow, changed plans, or swings from seconds to minutes with the same parameters. Has tested queries and rules common answers miss, e.g. Query Store averages need execution weighting. For many slow queries, use `resource-usage-sqlserver`.

  • sql-admin-analyze-readiness-at-scale

    Use only when the user asks for estate-wide migration readiness across many Azure Arc SQL Server instances: dashboards, totals, coverage. For one instance or generic results, use `sql-admin-get-migration-assessment`.

  • sql-admin-evaluate-azure-migration-assessment

    Use when the user wants to run, rerun or refresh an Azure Arc SQL Server migration assessment for fresh readiness and SKU results. To read existing results, use `sql-admin-get-migration-assessment`.

  • sql-admin-get-migration-assessment

    Use when the user asks about existing Azure Arc SQL Server migration assessment results (readiness, SKUs, costs), including supplied JSON. For a new run, use `sql-admin-evaluate-azure-migration-assessment`.

  • sql-agent-job-failure-investigator

    Use when a SQL Server Agent job failed, was canceled, keeps retrying, is stuck running or missed its schedule, and the user wants the failing step and error. SQL Server and Managed Instance only.

  • sql-tools-mcp-setup

    Use when the SQL Tools MCP server from the microsoft-sql-admin plugin must be set up, enabled, connected or repaired: no mssql_* tools listed, no connections, CONNECTION_STRING or the .NET SDK and dnx missing, or a skill reports no SQL tool. Asks before changing anything; not for diagnostics.

  • table-access-analysis

    Use when the user asks which tables are most read, written or scanned, which are unused, or whether anything still touches a table. Has tested queries and rules common answers miss, e.g. index rebuilds no longer reset usage counters. For table health, use `table-health-check`.

  • table-health-check

    Use when the user asks about table corruption, consistency errors, suspect pages, repair, or structural issues: heaps, no primary key, disabled or fragmented indexes. For table activity, use `table-access-analysis`.

  • top-queries-noqds

    Use when the user wants top CPU or most expensive queries, or queries with several cached plans, and Query Store is off or unavailable (DMVs only). With Query Store on, use `query-store-investigation`.

  • wait-category-analysis

    Use when the user asks why queries are slow in terms of waits: which wait categories (lock, CPU, IO, memory, network) dominate now or recently. Requires Query Store with wait stats capture.

MCP servers (1)

View source on GitHub

More from microsoft/microsoft-sql

All 6 plugins →

Microsoft SQL

claudecodex

Build and operate Azure SQL Database applications, from provisioning and secure connections through schema design, deployment, data movement, performance tuning, vector search, RAG, and local development with the Azure SQL Database container.

54 skills

69

Build and manage Azure SQL Database applications in Visual Studio Code with the MSSQL extension, including connections, schema and ORM workflows, deployment, diagnostics, security, data movement, recovery, T-SQL, vector search, and database projects. Data API Builder configuration guidance is excluded where it would duplicate tools provided by the extension; hosting Data API Builder in Azure and connecting remote MCP clients are included.

44 skills

69

Develop and test applications locally with the Azure SQL Database container, including setup, secure connections, schema and data management, CI, migration from SQL Server containers, local-to-cloud workflows, APIs, and RAG.

17 skills

69

Plan and execute SQL Server migrations to Azure, including target selection, readiness assessment, prerequisite planning, SKU sizing, BACPAC, backup and restore, Log Replay Service, and post-migration validation.

12 skills

69

Explore database inventory, performance, and security posture across Fabric Database Hub using read-only, Microsoft Entra-authenticated APIs for Azure SQL, Arc-enabled SQL Server, Azure Database for PostgreSQL, Azure Cosmos DB, and Fabric SQL.

1 skill

69

Similar plugins

ui-ux-pro-max

claudecodex

Professional UI/UX design intelligence for AI coding assistants. Includes searchable databases of styles, colors, typography, charts, and UX guidelines for React, Next.js, Astro, Vue, Nuxt.js, Nuxt UI, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Jetpack Compose, Angular, Laravel, JavaFX, and Three.js.

7 skills

nextlevelbuilder/ui-ux-pro-max-skill 156,013

Self-learning vector database — HNSW, FlashAttention-3, Graph RAG, hybrid search, DiskANN, and Brain AGI

4 skills · 1 command · 1 agent

ruvnet/ruflo 82,672

diagram-design

claudecodex

Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.

1 skill · 7 commands

cathrynlavery/diagram-design 75,607

Query Trackio projects, runs, and metrics using the `trackio` CLI. Use when the user needs to list projects/runs/metrics, get summaries, or retrieve metric values from local Trackio databases. Supports both human-readable and JSON output formats. Covers project discovery, run inspection, metric querying, and system metrics. Designed for LLM agents and automation scripts.

1 skill

sickn33/agentic-awesome-skills 50,566

Connect Claude Code directly to your CockroachDB clusters for hands-on database work — explore schemas, write optimized SQL, debug queries, and manage distributed database clusters. This plugin provides 14 tools across two active MCP backends (self-hosted MCP Toolbox and managed CockroachDB Cloud MCP Server), three specialized agents (DBA, Developer, Operator), 32 skills across 6 operational domains, and built-in safety hooks.

34 skills · 3 agents · 3 MCP servers · hooks

anthropics/claude-plugins-official 48,700

payload

claude

Payload Development plugin - covers collections, fields, hooks, access control, plugins, and database adapters.

1 skill

payloadcms/payload 46,061

Maintain Microsoft SQL administration?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins6 plugins