Disconnecting from a Database in Embedded SQL

When you are finished working with a database, you can disconnect a named connection or all connections.

Execute an EXEC SQL DISCONNECT statement.

The following statement shows how to use DISCONNECT in Embedded SQL:

EXEC SQL DISCONNECT :conn_name
Related concepts
Dbspace Management Permissions