API:Data.SqlExpr.TSQLQuery.DataSource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSource: TDataSource read GetDataSource write SetDataSource;

C++

__property DataSource;

Properties

Type Visibility Source Unit Parent
property published
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLQuery

Description

Links the SQL dataset to another (master) dataset.

Data.SqlExpr.TSQLQuery.DataSource inherits from Data.SqlExpr.TCustomSQLDataSet.DataSource. All content below this line refers to Data.SqlExpr.TCustomSQLDataSet.DataSource.

Links the SQL dataset to another (master) dataset.

DataSource links this SQL dataset to another (master) dataset that supplies values for this dataset's parameters.

When the SQL dataset's CommandText (or SQL) property specifies a parameterized query but the application does not provide values for the corresponding parameters in the Params property, the SQL dataset fetches parameter values from the dataset identified with the specified data source. When the current record in the dataset associated with DataSource changes, the SQL dataset refreshes its data to reflect the new parameter values.

See Also