ASA Database Administration Guide
In the next step towards establishing a connection, Adaptive Server Anywhere attempts to locate a server. If the connection parameter list includes a server name (EngineName (ENG) connection parameter), it carries out a search for a server of that name. If no EngineName (ENG) connection parameter is supplied, and LINKS is not specified or LINKS includes Shared Memory, Adaptive Server Anywhere looks for a default server.
If Adaptive Server Anywhere locates a server, it tries to locate or load the required database on that server.
For information, see Locating the database.
If Adaptive Server Anywhere cannot locate a server, it may attempt to start a personal server, depending on the connection parameters.
For local connections, locating a server is simple. For connections over a network, you can use the CommLinks (LINKS) connection parameter to tune the search in many ways by supplying network protocol options.
The network search involves a search over one or more of the protocols supported by Adaptive Server Anywhere. For each protocol, the network library starts a single port. All connections over that protocol at any one time use a single port.
You can specify a set of network protocol options for each network port in the argument to the CommLinks (LINKS) connection parameter.
Each attempt to locate a server involves two steps. First, Adaptive Server Anywhere looks in the server name cache to see if a server of that name is available (this step is skipped if the value of DoBroadcast is none). Second, it uses the available connection parameters to attempt a connection.
If the server is autostarted, information from the START, DBF, DBKEY, DBS, DBN, ENG, and AUTOSTOP connection parameters are used to construct the options for the autostarted server.
SQL Anywhere Studio 9.0.2
Copyright © 1989–2004 Sybase, Inc. Portions copyright © 2001–2004 iAnywhere Solutions, Inc. All rights reserved.