Subject | Re: [firebird-support] Possible to create DB using an alias? |
---|---|
Author | Helen Borrie |
Post date | 2004-05-02T22:14:49Z |
At 04:36 PM 2/05/2004 -0400, you wrote:
problem, isn't it? I recall a discussion about on devel about possible
logic but there are security considerations, too, of course. The main
purpose of aliasing is to keep the hard path off the wire when accessing a
database. It would be pretty futile if application code had some way to
extract the alias path, wouldn't it? OTOH, it's up to the developer to
decide how safe it is to create databases from remote applications.
/heLen
>I'm trying to create a DB with FB1.5 (released) using an alias. TheAFAIK, no. CREATE DATABASE has to have a hard path. It's a "bootstrap"
>alias points to where I want the DB created including its name which
>works fine to connect to an existing DB. But trying to create one
>programatically gives error 335544375, unavailable database. Not too
>surprising since it of course does not yet exist. Is there a way to do
>it short of reading the aliases.conf file, extracting the path and
>creating a CREATE DATABASE statement with it?
problem, isn't it? I recall a discussion about on devel about possible
logic but there are security considerations, too, of course. The main
purpose of aliasing is to keep the hard path off the wire when accessing a
database. It would be pretty futile if application code had some way to
extract the alias path, wouldn't it? OTOH, it's up to the developer to
decide how safe it is to create databases from remote applications.
/heLen