Icon KeepConnection Property

property KeepConnection: Boolean


Use the KeepConnection property to specify whether an application remains connected to a database even if no datasets are open. When the KeepConnection property is True (the default) the connection is maintained. When the KeepConnection property is False a connection is dropped when there are no open datasets. Dropping a connection releases system resources allocated to the connection, but if a dataset is later opened that uses the database, the connection must be reestablished and initialized.

Information The KeepConnection property setting for temporary TDBISAMDatabase components created automatically as needed is determined by the KeepConnections property of the TDBISAMSession component that the TDBISAMDatabase component is linked to.