Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » SQL Anywhere database connections » Database connections


Connecting to a running database on another computer (command line)

You can connect to a database running on a network database server by using the Interactive SQL utility at a command prompt and the Host connection parameter.


There must be a running database on another computer.

  • Run the following command:

    dbisql -c "UID=user-ID;PWD=password;ServerName=server-name;Host=host-name"

    Since a computer system can run multiple SQL Anywhere database servers, always specify the database server name (ServerName=server-name) when connecting to a database.


The application connects to the database.


Run the following command to connect to the sample database on the host my_host:

dbisql -c "UID=DBA;PWD=sql;ServerName=demo16;Host=my_host"

 See also