How to connect Delphi to an external DB?

217 views Asked by At

I'm building a Delphi application, and I want to connect it to a Firebird Database.

The database file (.FDB), is on a local machine of my network (let's say 192.168.1.10) and watching a YouTube tutorial, I learned how to use the FDConnection that, on the parameter Database, asks for the file path to the database. I can't inform it because it is on another PC, so how could I connect my Delphi application to an external database?

1

There are 1 answers

0
Error In Code On

You will need to specify the path in runtime.

I would likely use a .ini file as suggested in the comments.

You will then need to set the database path on your TFDConnection from the file on startup.