Subject | Re: [firebird-support] Testing the Presence of a Server |
---|---|
Author | Paul Vinkenoog |
Post date | 2007-07-10T14:44:30Z |
Hi Stefan,
1.0.x Classic on Linux. So for that one (and for pre-IB6 servers)
you'd have to check if the error message returned is the same as when
there is no Firebird server at all. And if it is, resort to
isc_add_user for those situations. But I wouldn't take the shortcut of
going to isc_add_user straight away; it's deprecated, so it may
disappear at some point in the future.
Good luck,
Paul Vinkenoog
>> You can call isc_service_attach() to verify a user name andThe Services API is available in IB6.0 and up, except in Firebird
>> 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?
1.0.x Classic on Linux. So for that one (and for pre-IB6 servers)
you'd have to check if the error message returned is the same as when
there is no Firebird server at all. And if it is, resort to
isc_add_user for those situations. But I wouldn't take the shortcut of
going to isc_add_user straight away; it's deprecated, so it may
disappear at some point in the future.
Good luck,
Paul Vinkenoog