SQLClose

Syntax

SQLClose(ConnectNum)

Remarks

Terminates a connection with an external data source. If the call is successful, then SQLClose will terminate the specified data source connection.

Argument

Explanation

ConnectNum

The unique connection ID of the data source from which you want
to disconnect. ConnectNum was returned by a previously executed SQLOpen function. If ConnectNum is not valid, SQLClose returns
an error value.


If the connection is successfully terminated, SQLClose returns 1, and the connection ID number is no longer valid. If SQLClose is unable to disconnect from the data source, it returns an error value and places error information in memory for the error functions, if such information is available.