FIREBIRD Questions and Answers

Is there a way to detect whether fbclient.dll or tbembed.dll is loaded?

There are some ways to detect it:
– check the size of DLL file
– if you are using different versions of Firebird (for example 1.5.4 and 2.0.1, you can query the server version via Services API)
You should understand that fbembed can be used as a regular Firebird client. Checking whether embedded or fbclient is loaded for licensing or similar needs is really not useful. You could use the connection string as guide, but super server can establish direct local connections without localhost prefix.
If you combine all this information, you could get some conclusions:
– if DLL size matches fbembed and connection string doesn’t have hostname, you are
using embedded
– if DLL size matches fbembed and connection string does have hosmame. you are using
either super server or classic
– if DDL size matches fbclient and connection string doesn’t have hostname, you are
using super server via local connection (IPC. XNET)
– if DLL size matches fbclient and connection string does have hostname, you are using
either super server or classic