/microsoft-sql-admin:backup-history-azuresqlfrom Microsoft SQL administration
Queries backup history, retention status, and latest backups on Azure SQL Database or Fabric SQL Database using sys.dm_database_backups.
Ships in Microsoft SQL administration. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the user asks about backups, backup history, retention, or data recovery on Azure SQL Database or Fabric SQL Database.
Platform Guard: This skill targets Engine Edition 5 (Azure SQL DB) or 11 (Fabric SQL DB). For SQL Server (Engine Edition 1–4, 8), use
backup-strategy-sqlserverinstead.
microsoft-sql-admin plugin (mssql_list_database_connections,
mssql_connect_database, then mssql_execute_query); any other SQL tool the agent host provides
for running T-SQL and reading result sets;
sqlcmd from a terminal. If the
SQL Tools MCP server is not connected or lists no connections, follow the sql-tools-mcp-setup
skill, which asks before installing or configuring anything. If no SQL tool can be made available,
give the user the T-SQL to run and ask for the results.VIEW SERVER PERFORMANCE STATE (VIEW SERVER STATE before SQL Server 2022) or, on Azure
SQL Database, VIEW DATABASE PERFORMANCE STATE or ##MS_ServerStateReader##, plus any other read
permission these queries need. A tool is only as read-only as the login it connects with.SELECT TOP 100
backup_file_id,
backup_start_date,
backup_finish_date,
CASE
WHEN backup_type = 'D' THEN 'Full database backup'
WHEN backup_type = 'I' THEN 'Incremental or differential backup'
WHEN backup_type = 'L' THEN 'Log backup'
END AS backup_type,
CASE
WHEN in_retention = 0 THEN 'Out of retention'
WHEN in_retention = 1 THEN 'In retention'
END AS retention_status
FROM sys.dm_database_backups
ORDER BY backup_finish_date DESC
OPTION (MAXDOP 1);
The $BackupType parameter can be adjusted based on what the user wants:
'D','I','L''D''I''L'msdb.dbo.backupset is not available in Azure SQL Database. Use sys.dm_database_backups instead.BACKUP command. Use SqlPackage to export a .bacpac file instead.GetLatestBackupHistory — not msdb.dbo.backupset.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub microsoft/microsoft-sql --plugin microsoft-sql-admin47 skills in this plugin
/active-connectionsUse 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-columnsUse 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-diagnosticsUse 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`.Other plugins' skills for the same job