Target Server Name and Address

When the Python application connects to Adaptive Server, the name of the target server is obtained from one of these sources.

  1. The server name if specified in the connect method.
  2. The DSQUERY environment variable, if the application does not specify the target server in the connect method.
  3. The SYBASE environment variable, if DSQUERY is not set.

The target server’s address is obtained from the directory service or from the platform-dependent interfaces file. Create a server entry in the interfaces file or the LDAP directory service. See the Open Client and Open Server Configuration Guide for your platform.