Login Response

The login response is a token stream consisting of information about the server's characteristics, optional information, and error messages, followed by a completion message.

The LOGINACK token data stream includes information about the server interface and the server's product code and name. For a detailed description of the login response data stream, see section

If there are any messages in the login response, an ERROR or INFO token data stream is returned from the server to the client. For additional information, see sections and

As part of the login response, the server can send one or more ENVCHANGE token data streams if the login changed the environment and the associated notification flag was set. An example of an environment change includes the current database context and language setting. For more details about the different environment changes, see section

If the database specified for connection in the login packet is participating in real-time log shipping, the corresponding ENVCHANGE is included as part of the response.

A DONE token data stream MUST be the last thing sent in response to a client login request. For additional information about the DONE token data stream, see section