捕捉TZConnection断线异常
捕捉TZConnection断线异常
try
qry.Close;
qry.open;
except
on e: exception do
if (e is EZSQLException) and (e.message = 'DBError : [20006] : Write to the server failed') then
begin
ZConnection1.Reconnect;
end;
end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/14084594.html

浙公网安备 33010602011771号