Jump to content
Registration disabled at the moment Read more... ×
Serge Pilko

Migrating a Delphi XE4 System to MSSQL, PostgreSQL, and Linux – Softacom’s Experience

Recommended Posts

At Softacom, we recently completed a large-scale project where we modernized a Delphi XE4 application. The system was used daily for payroll & HR, and over time, it had grown into a huge codebase with outdated dependencies. The goals were clear:

  • Update the database access layer
  • Support both MSSQL and PostgreSQL
  • Add Linux support
  • Introduce a testing framework to stabilize future changes

 

Challenges we faced:

  • Outdated data access technology – the system was incompatible with modern DB systems 
  • No testing framework – made regression risks high
  • Cross-DB migration issues – MSSQL vs PostgreSQL differences (LEN() vs LENGTH(), IDENTITY vs SERIAL, transaction handling, etc.)
  • Platform restrictions – Windows-only code needed to run on Linux
  • Knowledge gaps – some application areas were undocumented and poorly understood, even by the company   

 

What we did:

  • Replaced the legacy DB layer with UniDAC, making the app work with both MSSQL and PostgreSQL
  • Handled SQL dialect differences and concurrency issues during the migration
  • Added support for Linux by rewriting ±769,000 lines of Windows-specific code
  • Built a unit testing framework from scratch (500+ tests)
  • Automated about 30% of the process with our internal conversion tools 

 

Outcomes? 

  • Query time reduced by ±35%
  • Defects cut by ±50% thanks to tests
  • Full Linux (Ubuntu, CentOS, Debian) support added
  • Technical debt reduced by ±40%, making the system easier to maintain and extend

 

If you are interested in a full breakdown of this project, we have published it here: https://www.softacom.com/cases/softacom-transformed-a-delphi-xe4-system-for-mssql-postgresql-and-linux/

  • Like 1

Share this post


Link to post

"The (Linux) modernization allows the company to attract more clients."

 

Can you explain more about the use of Linux the support?

Are you talking about a GUI application?

 

Share this post


Link to post

Case seems written for potential customers looking to have something similar done. Not much detailed info of interest to other Delphi developers. Not unexpected as the rest of us could be possible competitors for such work. 

 

Still interesting data point for what is being done in regards to modernization of older projects developed with Delphi.

Share this post


Link to post
7 hours ago, Lars Fosdal said:

The SoftaCom posts appear to be purely marketing

That's was my impression, too.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×