Subject Re: [firebird-support] How do attach to a remote database server?
Author Helen Borrie
At 06:16 AM 28/04/2006, you wrote:
>I am a bit confused how the client/server model work in the case of
>using the fbclient.dll API.
>The isc_attach_database() api as well as the example code shipped with
>the Firebird server looks the same as the one I used for embedded
>database call.
>But how does the filename C:\Firebird\examples\employee.fdb specified
>in the isc_attach_database()?
>There is a isc_service_attach() API, does this one I should use if I
>want to attach to the remote Firebird database server?

As Ann said, that call is for a call to the services manager, a sort
of inbuilt service console that accesses various server-level
utilities internally.

AFAIR, the example code only connects to local databases. To connect
to a database on a remote server, you need to include the server's
hostname in the string, with the correct format for the network
transport you want to use. Assuming that's TCP/IP, and a Windows
server named myserver, that has your database in
C:\Firebird\examples\employee.fdb, the string will be
"myserver:C:\Firebird\examples\employee.fdb". For a remote
connection you will also require a Firebird username and password
that are valid on the remote server.

Apologies if this isn't the level of stuff you're needing to know.