Scott Morgan wrote:

Is it possible to tell if a DB connection was made via an alias? Is there something in one of the RDB$ tables that flags this?

Thomas Steinmaurer answers:

Not a real flag, but only by having a look at the string when, e.g. querying.

select mon$attachment_name From mon$attachments

or via a context variable.

select rdb$get_context('SYSTEM', 'DB_NAME') from rdb$database

But, AFAIK, later dismisses the full path information only, if DatabaseAccess in firebird.conf is set to None:

DatabaseAccess = None

but then, you only allow alias connections anyway.

Like this post? Share on: TwitterFacebookEmail

Related Articles


Firebird Community



Gems from Firebird Support list