Subject Re: [firebird-support] How to Retrieve All Database Names from the Server?
Author Helen Borrie
At 01:08 AM 8/05/2004 +0000, you wrote:
>I read through all the documents but couldn't find an API to
>enumerate all the database names in a FireBird server.
>
>Is there any way to query all database information (not just a
>particular one by using isc_database_info() ) ?
>
>

In the API, no. The server doesn't "know" a file is a database, i.e. there
is no extension, etc. that it can search for in the
filesystem. isc_database_info() et al. assume a supplied path points to a
database file and will naturally barf if pointed to some other kind of file.

If you need server-wide database registration, it's something you'd need to
set up yourself and it would be platform-specific to the client. For
example, quite a few of the Windows tools save your connection strings to
the Registry and refer to "registering" databases. But a platform-neutral
tool like isql or gbak needs a supplied connection string. In Fb 1.5, that
can be an alias, if you have the configured one in aliases.conf.

/heLen