When you are finished working with a database, you can disconnect a named connection or all connections.
The following statement shows how to use DISCONNECT in Embedded SQL:
EXEC SQL DISCONNECT :conn_name