Subject | Re: [firebird-support] Re: Firebird function to test if a database connection is not disconnected? |
---|---|
Author | Olivier Mascia |
Post date | 2009-05-14T21:43:19Z |
Le 14-mai-09 à 19:46, jeff_j_dunlap a écrit :
you, you might want to simply use IBPP Database::Info(), Statistics(),
Counts() or Users() which all four do call once that API. The
difference is that those calls ask for some information, which of
course you don't need when all you want to do is test the connection.
Lookup those in IBPP documentation and decide for yourself which way
to go. I like Dimitry idea of only calling for info_implementation
information though.
--
Olivier Mascia
> The API function seems to be the way to go then! There is a lotIn addition to the direct C api call (isc_database_info) Dimitry gave
> that I need to learn about SQL and Firebird and I just cannot figure
> out how to call this function from my application.
>
> Can you tell me what is the easiest way to call the function and
> also if possible tell me the the different ways that the function
> can be called (such as through UDFs, procedures, etc)?
you, you might want to simply use IBPP Database::Info(), Statistics(),
Counts() or Users() which all four do call once that API. The
difference is that those calls ask for some information, which of
course you don't need when all you want to do is test the connection.
Lookup those in IBPP documentation and decide for yourself which way
to go. I like Dimitry idea of only calling for info_implementation
information though.
--
Olivier Mascia