This topic describes how to connect to Firebird database.
The FireDAC native driver supports the Firebird server and the embedded editions version 1.5 and later. It does not officially support Jaffil.
To connect to InterBase, use the FireDAC InterBase driver.
FireDAC requires the following x86 or x64 client software to be installed on the workstation:
Note: It is critical to use the appropriate DLL for the DBMS client library. Do not use GDS32.DLL with Firebird or FBCLIENT.DLL with InterBase.
You can put the required files in:
Alternatively you may put the required files in any other folder, and specify their path in FDDrivers.ini:
[FB] VendorLib=\fbclient.dll
If the Firebird client library has not been installed properly, an exception is raised when you try to connect:
[FireDAC][Phys][FB]-314. Cannot load vendor library [fbclient.dll]. The specified module could not be found. Check [fbclient.dll], which is located in one of the PATH directories or in the application EXE directory.
FireDAC requires the Firebird client library. To install it:
sudo apt-get install libfbclient2 sudo ln -s /usr/lib/x86_64-linux-gnu/libfbclient.so.2 /usr/lib/x86_64-linux-gnu/libfbclient.so
sudo yum install firebird-libfbclient sudo ln -s /usr/lib64/libfbclient.so.2 /usr/lib64/libfbclient.so
To link the driver:
To connect to the Firebird DBMS, most applications require that you specify the DriverID, Protocol, Server, Database, User_Name, Password, and CharacterSet connection definition parameters (see Defining Connection (FireDAC) for details).
The database name to attach. The value can be:
For an embedded database, a path can include path variables.
Controls authentication mode:
For details, see the doc\README.trusted_authentication.txt.
Controls the extended description of the query result sets:
The TCP/IP port on which the Interbase server is listening. By default, it is equal to 3050. When it is differrent, then you should set the "Port" parameter to the required value.
The protocol used to connect to the DB server. This parameter can take one of the following values:
If the Protocol parameter is specified, FireDAC builds full database paths, using the appropriate Protocol format and Server and Database parameter values.
Specifies how to open a database. The following modes are supported:
Controls the deletion of an existing database:
DriverID=FB Database=C:\fb\ADDEMO_FB21.FDB Protocol=TCPIP Server=FBSrv User_Name=sysdba Password=masterkey CharacterSet=win1252 ExtendedMetadata=True
DriverID=FB Database=FBSrv:C:\fb\ADDEMO_FB21.FDB User_Name=sysdba Password=masterkey CharacterSet=utf8
DriverID=FB Database=C:\fb\ADDEMO_FB21.FDB User_Name=sysdba Password=masterkey CharacterSet=win1251
Drop the TFDPhysFBDriverLink component to the form and set its VendorLib to
DriverID=FB Database=C:\fb\ADDEMO_FB21.FDB User_Name=sysdba CharacterSet=utf8