SQL.CLOSE macro

Terminates a connection to an external data source. If this function is not available, you must install the Microsoft ODBC add-in (XLODBC.XLA).

Syntax

SQL.CLOSE(connection_num)

Connection_num    is the unique connection ID of the data source from which you wish to disconnect.

 

Remarks

Example

SQL.CLOSE(conn1) will close the connection with connection_num conn1

Related Functions

SQL.OPEN   Establishes a connection with a data source

SQL.EXEC.QUERY   Sends a query to a data source

SQL.BIND   Specifies storage for a result column

SQL.RETRIEVE.TO.FILE   Retrieves query results and places them in a file

SQL.RETRIEVE   Retrieves query results

SQL.GET.SCHEMA   Gets information about a connected data source.

SQL.ERROR   Returns detailed error information

Return to index