Subject | Re: [firebird-support] Determine if connection was made via alias |
---|---|
Author | Thomas Steinmaurer |
Post date | 2013-02-25T15:25:25Z |
> Is it possible to tell if a DB connection was made via an alias? IsNot a real flag, but only by having a look at the string when, e.g.
> there something in one of the RDB$ tables that flags this?
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. ;-)
--
With regards,
Thomas Steinmaurer
http://www.upscene.com/