How can I keep my DB connection from failing when the network is unstable?

后端 未结 5 1825
攒了一身酷
攒了一身酷 2021-02-10 15:01

We have a application that uses BDE connected to an Oracle DB.
I use TQuery for the SQL queries, and it connects to TDatabase, we are not professional programmers, and we do

5条回答
  •  失恋的感觉
    2021-02-10 15:44

    Going to an n-tier solution might also help... especially if the middle tier is also on the database server so its connection is local. Most of the recent implementations for Delphi use a custom HTTP server as the middle tier, the advantage of such is that the connection is only required for the current request being performed..once the request is complete, the connection can be severed without any problems.

提交回复
热议问题