Paradox and BDE migration: getting the tables, and the program, off a deprecated engine

The tables sit in a shared folder as .DB, .PX and .MB files, the program is a Delphi or C++Builder executable from around 2000, and under it runs the Borland Database Engine, deprecated by its own vendor for more than twenty years. We move the data to SQL and the program off the BDE, checking every report against the old one before anything switches.

Book a Legacy Assessment Why shared-file indexes break

Before Delphi · BDE · Paradox tables on a file share
Stock Control — STOCK.EXE
Part NoVLV-2210-SS
DescriptionBALL VALVE 1" STAINLESS
On hand148
Reorder at60
BDE 5.2.0.2 · Paradox 7 tables · NET DIR \\SERVER\PDOX · 32-bit only
After .NET 8 · PostgreSQL · same stock, same reorder list
stock.yourcompany.local/parts/VLV-2210-SS

VLV-2210-SS PARITY ✓

Description BALL VALVE 1" STAINLESS
On hand 148
Reorder at 60
Locking database server, no .LCK files
Save

Illustrative screens, fictional data. Same part, same quantity, and the reorder report lists it on the same line.

The situation you are probably in

Most owners only notice the BDE when a PC gets replaced. The installer wants an engine nobody has a disk for, or the program stops at “Network initialization failed”, and whoever set up the shared folder left years ago. Roughly what you are dealing with:

  • Embarcadero’s upgrade guide says the BDE has been deprecated since 2002. It has no Unicode and never will, it left the RAD Studio installer in the mid-2010s, and there is no 64-bit version, so an app built on TTable and TQuery stays 32-bit however new the compiler.
  • Every PC must reach the same PDOXUSRS.NET through its NET DIR setting, by the same path. The drive letter may differ, the path may not; get one workstation wrong and the BDE stops with “Multiple net files in use”. A crashed PC can leave PDOXUSRS.LCK and PARADOX.LCK behind, and the next morning starts with someone deleting lock files by hand.
  • “Index out of date” means a .PX or .Xnn/.Ynn index fell a step behind its .DB, usually after a crash or a dropped connection. The .DB is usually intact; “Corrupt table/index header” is worse. The standard advice for decades: opportunistic locking off on the server, LOCAL SHARE = TRUE on every workstation.
  • The block size a table was created with caps its size. 2K blocks stop at 128 MB, 4K at 256 MB, and then the error is “Table is full”.
  • Paradox for DOS applications use the same tables, and from Paradox 4.0 on the same locking protocol, so DOS and Delphi clients can share a folder. Older 3.x clients cannot. Keeping them out is what PARADOX.LCK is for.
  • Password-protected tables are encrypted, and tools outside Paradox need the master password. Microsoft’s note for Access says an auxiliary one gets you “Couldn’t decrypt file”. If nobody has the master password, we find that out before quoting anything.

How we migrate Paradox and BDE systems

  1. Assessment: map what you actually have

    We inventory the code, data, reports, integrations and — crucially — which parts are still used. You get a written, risk-ranked migration roadmap at a fixed price, yours to keep whoever executes it.

  2. Parity harness: capture today’s truth

    Before any new code, we build an automated harness that runs your real workflows on the existing system and records the results — totals, calculated fields, rounding, sort orders. That becomes the contract the new system must satisfy; behaviour is preserved because it is tested, not assumed.

  3. Data first, verifiably

    A repeatable pipeline moves your data into SQL Server or PostgreSQL with counts and checksums on every run — encodings, null and date semantics, and any business logic hidden in indexes handled explicitly. The mirror runs from day one, so it is always fresh.

  4. Rebuild in slices on .NET

    Modules are rebuilt on .NET 8 against the mirrored data. Read-only functions (reports, lookups) move first for instant, low-risk value; write functions cut over one workflow at a time, each gated by parity. There is no weekend where everything switches at once.

  5. Cutover with a way back

    When the last write path passes parity, the old system becomes read-only, then an archive. You get the full parity report — evidence, not assurances — plus the documentation the legacy system never had.

What survives the migration

  • Every table, with its rules records from the .DB, memos and graphics from the .MB, and the validity checks, defaults and referential integrity Paradox kept in .VAL files, which become real SQL constraints. Counts and checksums on every run.
  • Logic hiding in the Delphi code OnCalcFields, BeforePost, lookup fields and master-detail links quietly do business work. They get written down and tested before they move.
  • Reports people sign off on same totals, same grouping, same sort order the old BDE language driver produced, or a documented reason for each difference.
  • Your Delphi source, if you want it Embarcadero ships a reFind script for BDE-to-FireDAC conversion and claims up to 80% of the work is search-and-replace. The remaining part is where behaviour changes, and that is what the parity harness checks.

What does not survive: the NET DIR ritual on every new PC, lock files that outlive their machine, the 32-bit ceiling, and the block-size wall nobody knew about until the table filled.

Related

The BDE read dBase tables as natively as Paradox ones, and many folders held both: see dBase/DBF migration. Shops that moved half their work to Access in the late 1990s will want Microsoft Access migration. “Index out of date” has the same roots as broken shared FoxPro and Clipper indexes, explained in index corruption on network shares.

Frequently asked questions

Can we keep the BDE application running on Windows 11?

Often, for a while. The 32-bit program still runs, and most of the trouble is in the shared folder: one consistent NET DIR, LOCAL SHARE on every machine, a share that does not cache Paradox files behind the BDE’s back. That kind of containment is a legitimate result. It buys time, though, on an engine that is deprecated, 32-bit and without Unicode, so it should come with a plan.

What should we do in the first week?

Copy the whole data folder while nobody is in it, every file and not just the .DB ones. On a PC where the program works, note the BDE settings from BDE Administrator: NET DIR, LOCAL SHARE, the aliases and their paths. Find out which tables have a master password and who knows it. And never run a repair tool on the only copy of a damaged table.

Should we port to FireDAC and stay in Delphi, or rebuild on .NET?

If the Delphi code is healthy and someone can maintain it, FireDAC keeps the screens and most of the source; it can even reach the Paradox tables through its ODBC bridge before the data moves. The catch is code built around record-by-record TTable navigation, which tends to behave differently, or slowly, against a SQL server. If the source is lost, a .NET rebuild against the same parity tests is cleaner. See rewrite vs convert vs wrap.

We have Paradox for DOS, not Delphi. Does this apply?

On the data side, fully: same files, same lock files, same passwords. The program is PAL scripts running inside Paradox, and on Windows 11 that needs a DOS emulator, with the printing and memory problems described in why DOS programs break on Windows 11. Moving the data out first gives you SQL access while the screens are rebuilt one at a time.

Start with an assessment, not a rewrite.

Send us the stack you are on and what hurts. You get a written read of your data and code, the realistic options — including the ones that cost you less — and what parity testing would cover. Fixed price, agreed before we start.

Book a Legacy Assessment Try the DBF Analyzer