Subject Re: [firebird-support] Testing the Presence of a Server
Author Stefan Heymann
Thanks, Paul.

> You can call isc_service_attach() to verify a user name and password.
> Even if the credentials are wrong, the answer will tell you if there's
> a Firebird service manager at the other end.

What versions of Firebird and InterBase would be covered by this
approach? IB6.0 and up?

> I'm not sure if you can distinguish the absence of a service manager
> from the total absence of a Firebird server though; you'd have to try
> that out. If there's no difference, you could test for server presence
> with the (deprecated) function isc_add_user(), supplying a nonsense
> SYSDBA password. This isn't a service manager function, so any
> Firebird server will respond to it.

OK, I'll give that a try.



Stefan Heymann, Tübingen, Germany