Subject Re: [ib-support] Connecting to db using C
Author Paul Reeves
William L. Thomson Jr. wrote:
> Sorry for not having looked in the docs for an answer, but based on the
> comment above, by using a servername:/path/to/db.gdb should be able to
> use isc_attach();
> Although it appears to be trying to connect to the localhost. No good.

Well, I tried compiling api3.c on an NT box and connecting to an
employee database on a remote Linux box. Depressingly (for you), it all
worked as expected. I passed servername:/path/to/employee.gdb as an
argument to the program. Connection was established and data retrieved
without problem.

Can you use ISQL from the client PC to connect to the database on the
remote server? I suspect you have a configuration issue somewhere, but
other than that, I'm afraid I'm out of bright ideas.


Paul Reeves
Supporting users of Firebird and InterBase