Topic: GitHub Copilot
  • 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. ...

  • Copilot Agent Mode in SSMS Is GA, and It Runs As You — Hi DBAs. SSMS 22.10.2 came out on 28 September 2026, and the headline in the release notes is short: Agent Mode for GitHub Copilot in SSMS is now generally available. The same release updated the bundled SQL Tools MCP server and made query execution follow the permissions of the SQL account you're connected with. Agent Mode is the step from "Copilot suggests a query" to "Copilot works through a multi-step task and runs things". It asks before it runs queries, but after you say yes, it runs them as you. And that's the part to think about. Most of us open SSMS with a sysadmin login out of habit. Hand that session to an agent and the agent is sysadmin too. My suggestion is simple: keep a second, smaller login for agent work, read-only on the databases you want to discuss, and switch to your real login only when you've decided to make a change yourself. Read the original: Release Notes for SQL Server Management Studio (SSMS) 22 (Microsoft Learn) This is...

  • GitHub Copilot in SSMS 22 Is Generally Available — Copilot has been creeping into SSMS for a while: preview in SSMS 22 builds in late 2025, code completions in early 2026, and in March 2026 Microsoft announced GitHub Copilot in SSMS 22 as generally available. You need a GitHub Copilot subscription to use it. For a lot of SQL Server DBAs this is the moment AI shows up in the tool they already have open all day, no new IDE needed. That's good for adoption and a little risky for the same reason. In my own tests with different AI models on a broken SQL Server lab, the pattern was clear: the answers sound sure of themselves whether they're right or not. So my rule stays simple. Let it write the first draft of the query or explain a plan, then check the actual execution plan and the numbers yourself before anything goes near production. And find out what your company's Copilot policy says about sharing schema and query text. Read the original: SSMS 22.4.1 and GitHub Copilot in SSMS (Generally Available) GitHub Copilot in SSMS...

  • 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 ...

  • A PostgreSQL Lab for AI Tests: Docker, pgAdmin, an MCP Server and VS Code — DBA AI Lab · Lab setup I Built a PostgreSQL Lab So Copilot Could Poke at It (Read-Only) PostgreSQL 17, pgAdmin and an MCP server in Docker on a 16 GB laptop, and Copilot in VS Code asking one question. What I expected, what broke, and what I fixed. 3 containers 16 GB RAM laptop 9 MCP tools 0 rows changed by the AI Okay friends, today's job was simple on paper: a PostgreSQL box on my own laptop that I can break while I try AI tools on it. No cloud database, no shared dev server. Something that starts when I log in, that I can throw away and rebuild in a few minutes, and that an AI can read but never change. By the end of the afternoon I had PostgreSQL 17 in Docker, pgAdmin next to it, an MCP server in front of it, and Copilot in VS Code answering a real question about the data. It did not go smoothly. VS Code turned out to be too new for the MCP server, and that alone ate most of my afternoon. I kept all of it in, because you'll probably hit some of the same things. ...