LOCAL dummy, lFailure dummy = SQLGETPROP(THIS.S2SHandle,'ConnectTimeout') lFailure = (ATC(TRANSFORM(VFPERROR_CONNECTION_HANDLE_INVALID),; THIS.ErrorMessage) > 0) OR ; ("connectivity" $ LOWER(MESSAGE())) IF lFailure * now disconnect; the extra error won't hurt SQLDISCONNECT(THIS.S2SHandle) THIS.ClearError() * try a reconnect cConnect = THIS.S2SConnectionString THIS.S2SHandle = SQLCONNECT(&cConnect) lFailure = (THIS.S2SHandle < 1) * Re-setup anything else required when a * connection is initialized here... ENDIF * now IF lFailure, I have a fatal error.