The following code produces an error: ODBCConnection1.Connected := True; SQLQuery1.Active := True; SQLQuery1.Active := false; ODBCConnection1.Connected := False; ODBCConnection1.Connected := True; SQLQuery1.Active := True; <- error SQLQuery1.Active := false; ODBCConnection1.Connected := False;
error is: could not prepare statement Last return code: SQL_INVALID_HANDLE Invalid handle passed to SQLGetDiagRec/Field Has anybody encountered this before? _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus