SQLCloseAll

Syntax

SQLCloseAll()

Remarks

Terminates all connections with external data sources. If the call is successful, then SQLCloseAll terminates all data source connections. This is useful when you want to ensure that any existing connections are closed before a macro or subroutine runs.

If the connections are successfully terminated, SQLCloseAll returns 1, and
no connection ID numbers are valid. If SQLCloseAll is unable to disconnect
from any single data source, it returns an error value and places error information in memory for the error functions, if
such information is available.