Using the 'dbhostname' Option
You can use the 'dbhostname' option to retrieve the host name of the database server to which a database client is connected.
This option retrieves the physical computer name of the computer on which the database server is running.
In the following example, the user enters the 'dbhostname' option
of DBINFO in a SELECT statement to retrieve the host name of
the database server to which DB-Access is
connected:
SELECT DBINFO('dbhostname') FROM systables WHERE tabid = 1;
The following table shows the result of this query.
(constant) |
---|
rd_lab1 |