Description

server-name or variable
Identifies the connection by the specified server name or the server name contained in the variable. If a variable is specified:

Let S denote the specified server name or the server name contained in the variable. S must identify an existing connection of the application process. If S identifies the current connection, the state of S and all other connections of the application process are unchanged, but information about S is placed in the SQLERRP field of the SQLCA. The following rules apply when S identifies a dormant connection.

If the SET CONNECTION statement is successful:

If the SET CONNECTION statement is unsuccessful, the connection state of the activation group and the states of its connections are unchanged.