Updated on 2024-05-07 GMT+08:00

SET CONNECTION

Function

Sets a database connection.

Syntax

SET CONNECTION [ TO | = ] connection_name

Parameter Description

  • connection_name

    Name of a database connection established by the CONNECT command.

Example

EXEC SQL SET CONNECTION TO con2;
EXEC SQL SET CONNECTION = con1;

Helpful Links

CONNECT and DISCONECT