The USING parameter in the CREATE SERVER statement takes the form hostname:portnumber [/databasename], where:
hostname is the machine that the remote server is running on
portnumber is the TCP/IP port number that the remote server is listening on. The default port number that an Sybase IQ listens on is 2638.
databasename is the Sybase IQ database that the connection will use. This is the name specified in the -n switch when the server was started, or in the DBN (DatabaseName) connection parameter.
For example, to configure an Sybase IQ named testasiq that is located on the machine apple and listening on port number 2638, use:
CREATE SERVER testasiq CLASS 'asajdbc' USING 'apple:2638'
You must issue a separate CREATE SERVER for each Sybase IQ or Adaptive Server Anywhere database that you intend to access. For example, if an Sybase IQ server named testasiq is running on the machine 'banana' and owns three databases (db1, db2, db3), you configure the local Sybase IQ like this:
CREATE SERVER testasiqdb1 CLASS 'asajdbc' USING 'banana:2638/db1' CREATE SERVER testasaiqdb2 CLASS 'asajdbc' USING 'banana:2638/db2' CREATE SERVER testasiqdb2 CLASS 'asajdbc' USING 'banana:2638/db3'
If you do not specify a /databasename value, the remote connection uses the remote Sybase IQ or Adaptive Server Anywhere default database. Since this may not be the database you want to connect to, you should always specify a /databasename in the USING clause.