Ways of Opening Interbase and Firebird Databases

1. Opening through ODBC DSN (interface: ADO or BDE). Select 'ODBC data source' option and then select the ODBC DSN from the dropdown list. But first, you should create an ODBC DSN of the corresponding type using Windows administrative tools, and point it to the database file.

2. Opening through BDE alias (interface: BDE). First, you should create the alias of type INTRBASE using BDE Administrator tool or Tools | BDE | Aliases menu of Database Tour, and point it to the database file.

3. Opening by specifying file name (interface: ADO, BDE, or Interbase). Select 'File' option and then specify the file name. For Interbase interface, it is possible to specify the Host option (host name or IP address of the server where the data file is located).

4. Opening through connection string (interface: ADO). Select 'Connection string' option and write a connection string. This way is the most flexible one because it allows to specify many additional parameters in the connection string and override standard Database Tour connection behaviour. But it is recommended basically for advanced users. Here are basic connection strings (more examples and details can be found in the Internet):

provider=sibprovider;location=localhost:;data source=C:\MyData\My_db.gdb;user id=SYSDBA;Password=masterkey;   (SIBPROvider Interbase OLE DB Provider must be installed)

Driver={INTERSOLV InterBase ODBC Driver (*.gdb)};Server=localhost;Database=localhost:C:\MyData\My_db.gdb;Uid=myUsername;Pwd=myPassword;   (Intersolv InterBase ODBC Driver must be installed)

Driver={Easysoft IB6 ODBC};Server=localhost;Database=localhost:C:\MyData\My_db.gdb;Uid=myUsername;Pwd=myPassword;   (Easysoft ODBC Driver must be installed)

DRIVER=Firebird/InterBase(r) driver;Uid=myUsername;Pwd=myPassword;DBNAME=C:\MyData\My_db.gdb;   (IBPhoenix Open Source ODBC Driver must be installed)

DRIVER=Firebird/InterBase(r) driver;Uid=myUsername;Pwd=myPassword;DBNAME=HostNameOrIPAddr:C:\Databases\My_db.fdb;   (IBPhoenix Open Source ODBC Driver must be installed)

Notes
Interbase or Firebird client must be installed.

See also

 Examples of ADO Connection Strings