PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD] MySql Lost connection
[WD] MySql Lost connection
Iniciado por guest, 06,sep. 2016 14:01 - 1 respuesta
Publicado el 06,septiembre 2016 - 14:01
Hello to all

Probably this is not the first and it will not the last question about the subject.

My scenario:
I have 15 remote places where are installed some pc's with a program for healthcare assistance.
They are connected remotely with a server that has a MySql database.
Sometime, the connection is lost and records are not registered correctly.

Is there a way to capture the error that the connection is lost and handle it to run a command to establish a new connection?

Thanks in advance

Gianni
Publicado el 06,septiembre 2016 - 14:19
Hi Gianni,

a case like this should raise an exception. So look at the exception management, and test to find out the exception code returned in that case

Best regards