捕捉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;                     

  

相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2022-01-11
  • 2021-11-17
  • 2021-11-03
  • 2021-06-17
  • 2021-10-08
  • 2021-05-21
猜你喜欢
  • 2021-09-27
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案