TIBDatabase change client library

1.1k views Asked by At

I have an application that uses Firebird as its database. Now I would like to use the embedded version (of Firebird) for a temporary storage.

Is it possible use a alternative client library only for a particular IBDatabase component? I didn't find a property to change the name of the client library

2

There are 2 answers

5
Cesar On BEST ANSWER

IBDatabase works only with the gds32 library, since it's intended to be used only with InterBase, not Firebird.

You will have to switch to another set of components, you could use FIBPlus that now is open source; with the FIBDatabase component you can specify the dll library that you want to use in your application.

2
peca On

I'm used to rename fbclient.dll (32 bit version) to gds32.dll and put it into folder (directory) with an exe file of my Delphi 7 project. The fbclient.dll is backward compatible with gds32.dll. IBX components have name of the library compiled in code so you can change name of library. The renamed library mimics the old one and works like communication proxy for Firebird server. So you can keep using IBX components in Delphi project and still use the newest version of Firebird server. A dll library placed directly beside exe file is linked first. Other placed in Windows folder or in dll search path will be ignored then. When using Firebird 2.x with a fbembed.dll you should rename the fbemmbed.dll (use 32bit version of server) to gds32.dll.