SQL Anywhere database connections

A database server connection forms a channel through which all activity from the client application takes place. Client applications cannot interact with the database server until a connection is made. When a database server connection is made, a user's permissions determine what actions the user is authorized to perform on the database server.

When a user connects to a database, the database server assigns the user's connection a unique connection ID. For each new connection to the database server, the server increments the connection ID value by one. These connection IDs are logged in the database server message log, which records informational messages, errors, warnings, and messages from the MESSAGE statement. The connection ID can be used to perform the following tasks:

You can use the CONNECTION_PROPERTY function to obtain a user's connection ID by querying the Number connection property.

 See also