Subject | Re: Path where database is located |
---|---|
Author | Svein Erling Tysvær |
Post date | 2005-08-11T06:54:36Z |
Hi Genilton!
Well, the client must know where to connect before issuing such a
statement, and it makes more sense to check client properties than
query the server (if someone wants to know my name, I normally tell
that myself, rather than phone my mother to tell him). It is even
recommended to use aliases and prevent users from connecting
otherwise. Often, only the database server have access to and know the
physical location of database files, whereas the clients only access
the alias. I you want to know the physical address given the alias,
you may of course bypass security by allowing access to the aliases.
conf file, but then you need to know the path to the root directory of
Firebird.
Set
> Is there a SQL expression that get the database path? (somethingI doubt it, and I don't think Firebird should allow such a query. Why?
> like SELECT DATABASEPATH FROM ....)
Well, the client must know where to connect before issuing such a
statement, and it makes more sense to check client properties than
query the server (if someone wants to know my name, I normally tell
that myself, rather than phone my mother to tell him). It is even
recommended to use aliases and prevent users from connecting
otherwise. Often, only the database server have access to and know the
physical location of database files, whereas the clients only access
the alias. I you want to know the physical address given the alias,
you may of course bypass security by allowing access to the aliases.
conf file, but then you need to know the path to the root directory of
Firebird.
Set