Specifying the server name
When you specify the server name value, you must use the following
format to connect to the database through the Informix
interfaces:
|
1 |
host_name@server_name |
|
Parameter |
Description |
|---|---|
|
host_name |
The name of the host computer running the Informix |
|
server_name |
The name of the server containing the Informix |
For example, to use a PowerBuilder native interface to connect to
an Informix database server named server01 running on a host machine
named sales, do either of the following:
-
In a database profile
Type the host name (sales) in the Host Name box and the server
name (server01) in the Server box on the Connection tab in the
Database Profile Setup dialog box. PowerBuilder saves this server
name as sales@server01 in the database profile entry in the system
registry. -
In a PowerBuilder script
Type the following in your PowerBuilder application
script:1SQLCA.ServerName = "sales@server01"Tip
If you specify a value for Host Name and Server in your
database profile, this syntax displays on the Preview tab in the
Database Profile Setup dialog box. You can then copy the syntax
from the Preview tab into your script.