Purpose
Shuts down the communication established via the Server_Connect( ) function with the remote data server. You can issue this statement from the MapBasic window in MapInfo Pro.
Syntax
Server ConnectionNumber Disconnect
ConnectionNumber is an integer value that identifies the specific connection.
Description
The Server Disconnect statement shuts down the database connection. All resources allocated with respect to the connection are returned to the system.
Example
Dim hdbc As Integer
hdbc = Server_Connect("ODBC", "DLG=1")
Server hdbc Disconnect
See Also:
Server_Connect( ) function