Home > database >  How to judge and disconnected databases in the PB
How to judge and disconnected databases in the PB

Time:10-08

PB program and server database connection, if suddenly disconnected, how can you judge whether has broken through the code or whether the normal connect to the database, which is a great god know?

CodePudding user response:

Enclosing DBHandle ()=0

CodePudding user response:

Write a TIMER in the MDI window, partition time select getdate (), if the SQLCA SQLCODE<0 is the connection is invalid, can be set for reconnection or quit
  • Related