A Delphi 32-bit application fails with errors randomly "Error: the database connection was lost.An existing connection was forcibly closed by the remote host " or "Error Code: -2147024882 memory allocation failure" on Database failover. Application restart is required. How to avoid the restart?
We made changes to the connection string: multisubnetfailover = true, provider = msoledb.1 to support Always on availability in case Disaster recovery. We configured a listener and Application connects to DB with this listener name. Ideally upon DB failover, deplhi app should connect to secondary replica and keep working without any restart. But it is not working because of above error. Application restart is required every time when we do manual failover.
- 32 bit delphi app ,delphi version 5, oledb driver 18.3, sql server 2019
Any other changes needed to make this work?