[freetds] FreeTDS (on FreeBSD) lost connection to remote MSSQLserver

Jorge Cordero jorge.cordero at gmx.net
Mon Jun 27 06:44:25 EDT 2005


Not really sure, but my guess is maybe the error handler is the key...
If you already created and installed a callback function via
dberrhandle(), then I suggest some testing.
Try for example killing your process in the server and adapt your app
to such exception.



-----Mensaje original-----
De: freetds-bounces at lists.ibiblio.org
[mailto:freetds-bounces at lists.ibiblio.org]En nombre de Dmitry V.
Zavyalov
Enviado el: Monday, June 27, 2005 01:46 AM
Para: freetds at lists.ibiblio.org
Asunto: [freetds] FreeTDS (on FreeBSD) lost connection to remote
MSSQLserver


All,

 Is there any way to detect server disconnection?
 I have FreeTDS installed from ports on FreeBSD 5.3 (version 5.0 as
 port says).
 Everything working great, but in case network problems or SQL server
 restart tds_submit_query simply returns 0 (TDS_FAIL) with no extra
 information.
 Can I handle such kind of situation?
 Thank You!



--
Best regards,
 Dmitry                          mailto:zavyalov at avtocard.msk.ru
Phone: +7-9262069526
icq: 33287024
skype: zavyalov

_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds




More information about the FreeTDS mailing list