Dropping Inactive Database Connections
Go Up to Managing database sessions Index
If the KeepConnections property for a session is True (the default), then database connections for temporary database components are maintained even if all the datasets used by the component are closed. You can eliminate these connections and free all inactive temporary database components for a session by calling the DropConnections method. For example, the following code frees all inactive, temporary database components for the default session:
Temporary database components for which one or more datasets are active are not dropped or freed by this call. To free these components, call Close.