Case Study
Migrating a Live System to a National Database
106 tables, zero downtime budget
106tables bridged
99auto-migrated same day
7hand-fixed edge cases
1 dayfrom dead to usable
Context
Under China's Xinchuang program (domestic technology substitution), a production
library-management system was migrated from SQL Server to DM8. Right after the swap:
menus stopped rendering, every query returned empty — the system was effectively dead
for its users.
Diagnosis
- Migrated data landed in the dbo schema while the application was configured
against the (empty) LIBRARY schema — so every business module read nothing.
- On top of that: classic cross-dialect SQL incompatibilities (pagination, TOP,
alias rules).
Fix
- View & alias bridges over 106 business tables (99 succeeded
automatically, 7 required manual handling).
- A hierarchical query function to restore parent-child menu structure.
- 4 backend dialect fixes (pagination / TOP / aliasing) adapting to DM8 rules.
- 3 frontend fixes plus an emergency built-in fallback menu — if the
API fails, the UI stays usable instead of crashing.
Outcome
Login, full menu and all business modules restored the same day; remaining
data-completeness checks documented and handed off. The fallback-menu pattern survived
in production and later saved another incident.
← All work