The peices required for the sql.ini is the hostname(or ip) and port number of the remote server. You must have those two pieces of information at a minimum. You do not need to know the servername of the remote server.
Sybase recommends using the Open Client Directory Service Editor (dsedit) to make changes to the sql.ini
file (or interfaces
file on unix)
Start > Programs > Sybase Connectivity > Open Client Directory Service Editor
As long as the hostname(or ip) and port are correct, you can choose any valid name for the server you want. This will become the the servername, e.g. -S theNameYouUsedInSqlIni
.
This does not change the remote server's servername, or affect the remote server in any way, it only affects connections from your local system.
Adding a Server to the Interfaces File
It's also possible to use LDAP if that is an option in your environment: