KI_DISCONNECT

Disconnect from external database

Synopsis:
CALL KI_DISCONNECT connection TO status
status = 'ki_disconnect( connection )
ArgumentEnumerationPurpose
connectionConnection number of external database
statusKDB_ERROR_ENUMReturn status
>KI_DISCONNECT

KI_DISCONNECT

This function will disconnect from a database and cause the database server to reclaim resources allocated to the connection. The parameter conn is the connection number used in the original KI_CONNECT. Any table or statement handles open on the connection will be automatically closed. After disconnecting the connection handle should be freed with KI_FREE_CONNECT to free local resources.

History
Introduced in KCML 5.00
See Also:
KI_ALLOC_CONNECT, KI_CLEAR, KI_CONNECT, KI_CONNECT_GET_ATTR, KI_CONNECT_GET_ATTR_STR, KI_CONNECT_SET_ATTR, KI_CONNECT_SET_ATTR_STR, KI_ERROR, KI_ERROR_TEXT, KI_FREE_CONNECT, KI_GET_ERROR_TEXT, KI_GET_LANGUAGES, KI_HANDLE_GET_ATTR_POOL, KI_INFO, KI_REDIR_CONNECT, KI_SET_LANGUAGE, KI_SET_LANGUAGES
KCML database status codes