Function CloseDataSource(Datasource)

CloseDataSource

With the procedure CloseDataSource you can temporarily close the connection to a data source. AIMMS automatically opens the connection to a data source if needed, and closes the connection when the project is exited.

CloseDataSource(
     Datasource          ! (input) a string expression
     )

Arguments

Datasource

A string containing the name of a data source.

Note

When CloseDataSource is called during a transaction that was explicitly started by calling StartTransaction the transaction is rolled back before actually closing the data source. CurrentErrorMessage contains a message telling it did so.