Problem
A mission-critical platform behind venue operations and season-ticket management ran on SQL Anywhere 17, a database approaching vendor end-of-life. Roughly 10,000 SQL scenarios were embedded directly in decades of legacy PowerBuilder code, tightly interdependent and largely untested. A straight manual port to Oracle 19 was estimated at around 15 years of engineering effort, against a system that cannot go down during an on-sale.
Approach
Rather than translate by hand, I designed a multi-stage migration pipeline: extract every embedded SQL statement from the application code, analyze cross-statement dependencies, transform each to Oracle-compatible syntax, generate tests, validate output against expected results, and reintegrate. The hard part was trusting automation at this scale, so the pipeline pairs deterministic tooling (regex parsing, dependency analysis, structured intermediate outputs) with constrained AI agents that operate only on pre-processed inputs, keeping results reproducible and auditable rather than probabilistic. It started as a single agent and grew into several running in parallel, always with a human reviewing and approving each batch.


