Subject Re: Server Name
Author Adam
--- In firebird-support@yahoogroups.com, "Adam" <s3057043@...> wrote:
>
> --- In firebird-support@yahoogroups.com, "Roberto Freitas"
> <solanofreitas@> wrote:
> >
> > Hello,
> > How can I know the server name (inside a trigger) using Windows
and FB
> > 1.5? (I mean know inside a trigger the name of the computer that is
> > running FB 1.5).
> >
>
> 1) Create a UDF
>
> There are API calls in Windows at least to get the current machine
> name etc.
>
> - OR -
>
> 2) Create a table and manually store it in there.
>
> Believe it or not that is often a 'good enough' solution.
>
> Adam
>

By the way, why would you need this information? The client
application must know the servername before connecting to it anyway,
so perhaps you don't need this.

Adam