Topic: Data API builder
  • SQL Server + AI: Copilot Drafts the Query, MCP Serves the Report, One Row Catches the Bug — Hey folks, here's a question I get on almost every night shift: which cold rooms ran too warm overnight? Sounds like a one-liner. Then you start asking what "overnight" means, in which time zone, whether exactly 5 °C counts, and what happens to the reading that lands right at 06:00. That's the kind of question where AI can save you time, and also the kind where it can quietly give you the wrong room. So I used it to try two things in a small SQL Server lab. First, GitHub Copilot in SSMS to draft the T-SQL, which I then review. Second, Microsoft's SQL MCP Server (Data API builder), so an agent can read the finished report but nothing else. At the end there's a short bit on vectors, because "have we seen this alarm before?" is a very different question. The code is on GitHub: dba-ai-lab / experiments/sqlserver-copilot-mcp , with the lab SQL, the reader login, the MCP config for VS Code, a tiny stdio test client and a one-command run script. ...

  • SQL MCP Server: Microsoft's Way to Let Agents Touch SQL Data — Hey folks. Microsoft's SQL MCP Server is built on Data API builder (DAB), the open-source engine that already gives you REST and GraphQL over a database. The April 2026 intro post describes DAB 2.0 as one surface for REST, GraphQL and MCP. It's role-aware: an agent only sees the entities and operations its role is allowed to use, and it can sit in front of SQL Server, Azure SQL, PostgreSQL, Cosmos DB and MySQL. I built this in my SQL Server lab (DAB 2.1.7 in Docker). The moment I liked most was a boring one: I asked the agent to delete data, and it simply couldn't, because the role didn't allow delete. No clever prompt needed, the config said no. That's the right direction for DBAs. The access rules live in a config file you can review, version and diff, not in a prompt that says "please be careful". The flip side is that someone has to own that config like they own grants today. Read the original: Introducing SQL MCP Server (Azure SQL Dev Blog) SQL MC...

  • I Built a SQL Server Lab for AI Tests. AI Agent Read My Passwords! — I built a small SQL Server lab on my laptop so I could test AI tools against a real database. Then I asked Copilot three questions in plain English. Two answers were right. The third question was "delete the retired bikes", and that's where it got interesting: the MCP server said no, so the AI went looking for another way in. And it had already read my password file without asking. Okay friends, so this one is the foundation for a lot of later tests. Below is how I built the lab, every download and every command (even if you've never touched Docker or MCP, you can follow it top to bottom), then the three questions, what I expected vs. what I actually got, where things went wrong, and what I'd take from it. The code is on GitHub: dba-ai-lab / labs/sqlserver , with the compose file, the sample database, the DAB config and the MCP smoke test. 1. The test environment, command by command Four pieces, and how they talk to each other: VS Code + Copilot ...