Subject RE: [firebird-support] How can I read full path from alias?
Author Rick Debay
Dynamic SQL Error SQL error code = -804 Function unknown RDB$GET_CONTEXT


-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Thomas
Steinmaurer
Sent: Thursday, January 11, 2007 4:52 PM
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] How can I read full path from alias?

Hello Paul,

> I have defined in fb aliases.conf database like:
> myDb=D:\Database\MyDb.FDB
>
> My connection is used like server:database!
>
> How can I get path for my alias?

With:

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

But you won't get the full path for an alias connection if you have set
the configuration parameter DatabaseAccess in firebird.conf to None.



--
Best Regards,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and
NexusDB V2
Upscene Productions
http://www.upscene.com

Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.