Question

I have installed ZEOS on my Delphi 7 and tried connecting to a Firebird database. After I put the db path to the object inspector and tried to connect to it, Delphi always displays a message requested database driver not found. I have installed the Firebird ODBC and have set the setting on the data sources shortcut found on administrative tools but still can't connect.

How do I install the driver and where do I need to put it?

I used this connection when i tried connecting to my Firebird database

procedure TForm1.ZConnection1AfterConnect(Sender: TObject);
begin

end;
Était-ce utile?

La solution

I think you might be misunderstanding what Zeos is and does. It is not a layer that lies between your application and ODBC, ADO or whatever database access layer. Instead, it is a database access layer itself that allows you to connect natively to several databases like Firebird, SQLite and others. It does not need ODBC to be installed.

You can find an introduction to Zeos architecture at their webpage in this article.

In order to connect with Firebird you will need to use a TZConnection and set following properties:

  • Database: For example c:/myapp/mydatabase.fdb
  • Hostname: localhost if the same computer.
  • Protocol: Should be one of the Firebird protocols. Firebird-x.x stands for protocol to access "normal" Firebird, while Firebirdd-x.x is for the embedded version.
  • User
  • Password

You can set additional properties but for a basic connection that should do it.

Regarding the error you mention, I suspect you are trying to use the embedded version. In that case, make sure the DLL mentiones by @Mark is in the same path as the app executable. If it is a regular Firebird installation make sure its path is included in the system path.

HTH

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top