r/SQLServer • ‪ ‪Microsoft Employee ‪ • Oct 12 '26

Community Request Database migrations: where should an AI agent be required to stop and ask a human?

I’m a PM working on database migration experiences at Microsoft.

I’m researching how much autonomy practitioners would trust an AI agent with during their database migration journey.

This is exploratory research; not a product announcement or roadmap commitment. I’m especially interested in feedback from people who have worked on real production migrations.

Which operating model would you trust?

  1. Advisory only: identify risks and recommend actions (similar to SSMA Copilot)
  2. Generate: create plans, scripts and code fixes, but humans execute them
  3. Act in non-production: execute approved changes in development or test
  4. Execute with approval gates: perform the migration, pausing before high-impact actions (SQL Migration Agent Skills)
  5. Mostly autonomous: humans approve only the production cutover
  6. No agentic execution: keep migration changes deterministic and human-operated

Most importantly:

  • What must always require human approval?
  • What evidence would you need before allowing the agent to continue?
  • Is having a skill good enough to solve your problem?
  • Would your answer differ for a same-platform migration versus a cross-platform conversion?

If possible, include your role and the source/target platforms. Please avoid sharing confidential details.

0 Upvotes

12 comments sorted by

8

u/TravellingBeard 1 Oct 12 '26

I think the key for this is rollback should be easy for humans to implement. For example, if the agent takes the source DB offline after migration (not delete), but something goes wrong, it should be trivial for the DBA to bring it back online.

I would never trust an AI agent to undo it's mistake, thus creating a potential cascade of new errors.

If devs generate these agents, and not DBA's, best practices will be skipped; I guarantee. I've worked with enough devs that I will never trust them in my liftime with this part.

So basically, I am comfortable only up to step 2.

1

u/DuoZ69_ ‪ ‪Microsoft Employee ‪ Oct 12 '26

This is a very valid worry! Thanks for pointing it. Currently which tools are you using / you have used for migrating your database? Are you satisfied with the level of AI in these tools or you think there's scope?

4

u/droden Oct 12 '26

AI: whoops i deleted your roll back method and all your backups! sorrrrryyyy

1

u/TrollingForFunsies Oct 12 '26

"It was blocking our deployment for some reason"

7

u/kagato87 Oct 12 '26

1 and 2.

Migrations need to be predictable and reliable. That means the methodology needs to be consistent and tested.

The only non production action is the test of the scripts themselves - it can test it's scripts against instances spun up for the sole purpose of validating the script. (I do this with my pipelines.)

1

u/DuoZ69_ ‪ ‪Microsoft Employee ‪ Oct 12 '26

Thanks for the feedback! It would be great if you can tell about the current tools you're using for migrations and what sort of AI is already there and if it's sufficient!

1

u/DuoZ69_ ‪ ‪Microsoft Employee ‪ Oct 12 '26

Thanks for the feedback. Currently which AI tools do you use for your migration? Please let us know the source and target as well.

3

u/Zolty Oct 13 '26

You make the AI write the script that you run in a testing environment first. The AI reviews the output and suggests changes, Human approves changes, asks questions if necessary.

Backups, rollback process, and acceptance criteria are critical.

1

u/read_at_own_risk Oct 12 '26

It's option 2, maybe 3, for me. I already use AI to generate migration scripts, based on db dumps or output that I copy&paste. I won't give it access to production databases, but I'm happy to have it generate files that I can review before running. I'd be comfortable giving it access to a sandbox db for testing purposes.

1

u/Anlarb 1 Oct 12 '26

The back up and restore is the least of the work. For it to be doing a migration, it would need to be carrying the weight on all of the coordination/prep work that goes into one.

New server builds based on the vendors reqs, as well as the businesses standards, starting a conversation where they conflict.

Firewall reqs specific to the environment.

Service accts and rights based on what is happening in that space (new box, new service acct; old domain going away; ad hoc users finally being condensed into a manageable group etc).

Are they also doing an app upgrade?

Is it aware of when backups are run/how long they take, and will it know to disable the nightly run ahead of a big migration that might otherwise be underfoot of the change?

Make the runbook, vet the runbook a few days ahead to make sure nothing has changed.

Lots of skills, lots of stakeholder communications. Probably needs to be a smaller workflow item on a larger enterprise management suite, since the migration is often used as a point to break the bone to set it properly.

DBA doing migrations every week, lower versions of windows&sql to higher.

1

u/BrownBearPDX Oct 15 '26

110% trust and full autonomy to the bot ... on a full test source/sink environment. Go out for a couple beers, come back and see what it's done, check the work when it's done, roll back, scold it and make it do it again until it's right. Rinse and repeat.

0

u/[deleted] Oct 12 '26

[deleted] — view deleted comment

2

u/DuoZ69_ ‪ ‪Microsoft Employee ‪ Oct 12 '26

Thanks for the feedback. While this sounds like a compelling idea, there would be some set of users who would want to automate this journey and don't want to look through each steps. In your suggested user experience, how do you intend to bypass the steps.

I'm talking about a use case where there are multiple dbs of similar size and comparable schema design that needs migration and the steps are repeatative.