Databases and AI Agents

As part of my wider work exploring Claude Code and AI-assisted database engineering, I have been looking at how AI can support SQL Server operations.

A failed job, missed backup, full transaction log or blocking issue can quickly become business-critical. In that environment, AI needs more than good answers. It needs control.

Personally there are 4 keys things I look for when designing database centric agents.

Evidence Before Opinion

Generic AI can explain SQL concepts, but real triage needs evidence:

  • What was checked?
  • What was found?
  • How confident is the result?
  • Did it just make something up ?
  • How did it get to the conclusion?

Without evidence, AI becomes another source of risk and uncertainty, DBAs don’t like either.

Guardrails Before Automation

A proper database agent should work through approved diagnostic paths, controlled tools and clear boundaries.

Early systems should focus on read-only checks, structured outputs, validation and human review. Do I really want a fully agentic agent with sub agents loose on my live systems ? Nope !

Audit Trails Build Trust

For enterprise teams, auditability is essential.

Every diagnostic step, tool call, result and recommendation should be traceable. So if the agent tells me that my recovery pending database isn’t that bad of an issue I want to know why it thinks that. I want to see its thinking process and its end conclusion.

The Human Stays in Control

AI should not replace DBAs. It should help them reduce noise, triage faster and focus on higher-value decisions. Who knows in the future but right now, I have the final say not Claude.

Secure Azure SQL Server Backups Using Managed Identities

I do believe most people know about the ability to backup your SQL server databases to URL (from Azure VMs).  If you recall you would use the storage key ( ideally not) or a SAS token, from there you would create a SQL credential that is bound to the SAS token (as a secret). Lots of moving parts especially when it comes to rotation time. So now, if you are on the newer versions of SQL server (SQL Server 2022 Cumulative Update 17 ) start thinking about backups via managed identities.

Continue reading

Minimize Downtime with SQL MI Disaster Recovery

I speak to many people who use cloud technologies, especially database tech and how little consideration they give to their MISSION CRITICAL Databases that run in the cloud and its Disaster Recovery process. When I say mission critical, I mean its relative to the company I am talking to, so what might be a tier 1 app for you might not be the case for Bob.

Continue reading

Restoring to Azure SQL Managed Instance – Part 2

So in the last blog we confirmed that we could move to SQL MI via some analysis, this is now time to actually do a backup and restore via URLs to move data.

Continue reading