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

  • I Let an AI Agent Build My Oracle AI Lab. One Prompt — Hi all, this is where the whole series starts. I wanted an Oracle AI lab on my very ordinary laptop, and I didn't want to type a single install command myself. So I wrote one prompt for an AI agent (Claude Code), told it to ask me before touching anything, and sat back to watch. Well, mostly watch. I read every request before I said yes. It ended with Oracle AI Database 26ai Free running in Docker with AI Vector Search, two small local models in Ollama, VS Code with the Oracle SQL Developer extension, and its own check script saying 12 PASS, 0 FAIL. Below is every command, what I tested, and what I'd do differently today, the passwords most of all. The code is on GitHub: dba-ai-lab / labs/oracle , with the compose file, the init scripts, the smoke test and the full prompt. 1. The test environment, command by command Piece What I used Laptop Windows 11, Intel i5, 16 GB RAM, no GPU Linux layer WSL2, memory capped at 6 GB Container runtime Docker Desktop Dat...

  • New to AI? Local or Cloud Models, and the Security Side — Hi all. Last part of New to AI?, and the one I care about most: where the model runs, what leaves your network, and the AI risks a DBA should know by name. No panic, no hype. Mostly old DBA rules in new clothes. Local or cloud? Local model Cloud model Where it runs Your laptop or your own server, for example with Ollama The provider's data center (ChatGPT, Claude, Gemini, Copilot ...) Your prompt Stays with you Leaves your network, including everything you pasted Quality Smaller models, fine for summaries, embeddings and simple SQL Usually much stronger on hard reasoning and long reports Hardware On a normal laptop without a GPU: small 3 to 4B models, slow but usable Nothing to run, you pay per use or per seat What to check Who can reach it on the network, and its updates The data terms: retention, training on your data, region, your company's agreement In my labs the Oracle AI setup runs qwen3:4b and nomic-embed-text locally, on a laptop with no GPU. It wor...

  • New to AI? MCP, Agents and Skills, Explained for DBAs — Hi all. Three words that show up in every AI announcement for databases now: MCP , agents and skills . Together they're how AI stops just talking about your database and starts doing things in it. Which is exactly why a DBA should understand them. MCP: one plug for every tool The Model Context Protocol is an open standard for connecting AI apps to tools and data. There are three roles: the host (the AI app, like VS Code with Copilot or Claude), an MCP client inside it, and an MCP server that offers capabilities. A server offers tools (things it can do, like "run this query"), resources (things it can read) and prompts . Under the hood it's JSON-RPC 2.0. In DBA words MCP is like a database driver standard. One protocol, many clients, many servers. And just like a driver, the MCP server connects with an account. That account is the real limit on what the AI can do, not the prompt. Agents: a model in a loop A chat answers once. An agent works towa...

  • New to AI? Text-to-SQL: When the SQL Is Right, and When It Only Looks Right — Hi all. Text-to-SQL (you'll also see NL2SQL) is the demo everyone loves: type "top 5 customers last month" and get a query, maybe even the result. Sometimes it's brilliant. Sometimes the SQL runs perfectly and answers a different question. This post is about telling those two apart. How it works The model gets two things in its context window: your question, and a description of your schema, meaning table names, column names, types and, if you have them, comments. From that it writes SQL. It doesn't see your data and it doesn't know your business words, unless you tell it. Where you'll meet it What it does Oracle Select AI You set up an AI profile with the tables it may use, then ask in SQL: SELECT AI showsql top 5 customers last month; . Other actions: runsql , explainsql , narrate , chat . Copilot in SSMS Writes and explains T-SQL in the query editor and runs queries with the permissions of your login. MCP tools An agent reads the schema t...

  • New to AI? RAG: Letting AI Answer From Your Own Docs — Hi all. Here's where vector search starts paying off. A model on its own only knows what it learned in training, and nothing about your systems. RAG (retrieval-augmented generation) fixes that: before the model answers, you retrieve the right pieces of your own documents and put them in its context window. The model answers from those, and can show where the answer came from. For DBAs that's runbooks, past incident notes, architecture docs, vendor notes. "How do we fail over the billing database?" answered from our runbook, not from a blog post somewhere. The five steps Chunk. Split the documents into pieces of a few hundred words. Too big and the search gets fuzzy; too small and the answer loses context. Embed. Turn every chunk into a vector with an embedding model (see part 3). Store. Put text, vector and metadata (source, date, owner) in a table with a vector index. Retrieve. Embed the question and fetch the top few closest chunks. Generate...