Data.DB.TCustomConnection.DataSets

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSets[Index: Integer]: TDataSet read GetDataSet;

C++

__property TDataSet* DataSets[int Index] = {read=GetDataSet};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TCustomConnection

Description

Lists the datasets currently using this connection component.

Use DataSets to access the datasets that are currently using the connection component. Depending on the TCustomConnection descendant, DataSets may include only the active datasets that use the connection component (as is the case with TDatabase and TSQLConnection), or it may list all datasets, regardless of whether they are active (as is the case with TADODatabase and DataSnap connection components TSOAPConnection). If DataSets includes only active datasets, its value changes when datasets are opened and closed.

Note: If a client dataset with an internal provider (for example TSQLClientDataSet or TBDEClientDataSet) uses the connection component to connect to a database server, DataSets lists the internal dataset that the client dataset creates to access data, not the client dataset itself.

See Also


Code Examples