Subject Re: [firebird-support] Re: database aliases
Author Daniel Rail
Hi,

At February 20, 2005, 10:39, Ulrich wrote:

>>
>> I suppose you could (and I cringe as I write this) share the
> firebird
>> folder with read permissions (preferably only on the aliases.conf >
> file).

> hm, yes possible, but not flexible enough.

>> A better solution would be to write a service that sits on the
> server
>> using Remobjects or equivalent that you could create a call
>> GetAliasConf that returned you the string, then call this from the
>> client application.

> Yes, but I'm not familiar with RemObjects. I'm only interested in the
> alias names which are in the aliases.conf file, not in the path
> itselfs to the databases.

>> Why would you want to do this though?

> In a former version of my app, based on Paradox tables , it was
> possible to work with differend BDE aliases to switch between
> different data. It was easy to call all available aliases from BDE.
> Actually I'm interestet in the theoretical possibility to ask Firebird
> server for the available aliasnames from aliases.conf .

Firebird can't do that at the moment. I don't know if it will be
possible in a future version, since some do see this as a security
risk. What Adam suggested is feasible. RemObjects is not the only
component set that you can use for this. Any TCP/IP component set
(i.e.: Indy) can be used to do this. I can't help you any further,
since I haven't done something similar, because I have no need for
that type of application, at the moment.

--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)