Specifies the name of a running database server to which you want to connect.
{ ServerName | Server }=database-server-name-string
Network servers or personal servers.
database-server-name-string If you are starting a database server automatically, you can provide a server name using this parameter.
The server name is interpreted according to the character set of the client computer. Non-ASCII characters are not recommended in server names.
Names must be valid identifiers. Database server names cannot:
On Windows and Unix, version 9.0.2 and earlier clients cannot connect to version 10.0.0 and later database servers with names longer than the following lengths:
The default local database server.
EngineName and ENG are accepted for backwards compatibility, but are deprecated.
When a database server starts, it attempts to become the default database server on that computer. The first database server to start when there is no default server becomes the default database server. Shared memory connection attempts on that computer that do not explicitly specify a database server name connect to the default server.
ServerName is not needed if you want to connect to the default local database server.
If you are connecing over TCP/IP and use the HOST connection parameter, ServerName is not required if the host name is provided.
In the Connect window, and in the ODBC Configuration For SQL Anywhere window, this is the Server Name field.
It is recommended that you include the ServerName parameter in connection strings for deployed applications. This ensures that the application connects to the correct server in the case where a computer is running multiple SQL Anywhere database servers, and can help prevent timing-dependent connection failures.
It is recommended that you use the -xd option for database servers being used by deployed applications, and that all clients explicitly specify the name of the database server to which they should connect by using the Server connection parameter. This ensures that the database connects to the correct database server when a computer is running multiple SQL Anywhere database servers.
Connect to a server named Guelph:
Server=Guelph |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |