Subject | Re: Firebird Service is running? |
---|---|
Author | Adam |
Post date | 2006-01-28T01:09:23Z |
--- In firebird-support@yahoogroups.com, "Steve Harp" <steve@h...> wrote:
exception if it is raised. I assume the component would be
TIBOConnection or TIBODatabase (I don't use IBO). Set the connection
string to localhost:blah
Either
1. Connection wont be established (conclude service not listening on
that port)
2. No alias called Blah (service must be listening)
3. Found alias blah and
a) Username / PW wrong (service must be listening)
b) Username / PW right (service must be listening).
You could also use an Indy Component, TIdTCPClient, set host to
localhost and port to 3050. Although this will not tell you what is
listening to 3050, just that something is, hence I find it better to
use a normal connection component.
Adam
>The best and easiest way is to attempt to connect and catch the
> Hi All,
>
> What is the best way to determine whether the Firebird service is
> running on the local machine from a Delphi application? Is there
> perhaps an IBO component that would give me this?
>
exception if it is raised. I assume the component would be
TIBOConnection or TIBODatabase (I don't use IBO). Set the connection
string to localhost:blah
Either
1. Connection wont be established (conclude service not listening on
that port)
2. No alias called Blah (service must be listening)
3. Found alias blah and
a) Username / PW wrong (service must be listening)
b) Username / PW right (service must be listening).
You could also use an Indy Component, TIdTCPClient, set host to
localhost and port to 3050. Although this will not tell you what is
listening to 3050, just that something is, hence I find it better to
use a normal connection component.
Adam