Goto: 4C Home | 4C Docs | System PCLs List sys.conn_close()

sys.conn_close()

Purpose:
sys.conn_close() closes a remote file server connection or an external database connection.
Usage:
sys.conn_close(<connname>,<closeflags>);
Arguments:

alpha <connname> - The name of the connection to close. This can be the empty string.

integer <closeflags> - Combination of the following flags:
Returns:
0 - sys.conn_close() always returns 0.
Where Used:
sys.conn_close() can be called from anywhere. However, the it is the applications responsibility to make sure that any active transactions have been committed or rolled back.
Example:
Description:
sys.conn_close() will close one or more external db and remote file connections. sys.conn_close() will be mostly used in situations where an external connection is idle a lot. Rather than letting the firewall terminate the connection, leaving orphaned processes on the remote machine, and getting an error the next time the connection is used, sys.conn_close() will explicitly close the connection. Then the next time the connection is needed a new one will be opened.
Bugs/Features/Comments:
See Also:
sys.close_file()


Back to Top