Data.SqlExpr.TCustomSQLDataSet.SchemaInfo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SchemaInfo: TSQLSchemaInfo read FSchemaInfo write FSchemaInfo;

C++

__property TSQLSchemaInfo SchemaInfo = {read=FSchemaInfo, write=FSchemaInfo};

Properties

Type Visibility Source Unit Parent
property protected
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TCustomSQLDataSet

Description

Identifies the metadata with which to populate the dataset.

SQL datasets can be used to represent metadata from the database server rather than the results of a query or stored procedure. SchemaInfo controls whether the dataset represents metadata, and if so, what kind.

When SchemaInfo specifies that the dataset represents schema information, the dataset is populated with that information when it is opened. Each record in the resulting dataset represents a single entity (a single table, stored procedure, field, parameter, or index).

Each type of schema information results in a different set of columns (fields), so it is not advisable to use persistent fields when accessing metadata through an SQL dataset.

Applications do not work directly with the protected SchemaInfo property. Instead, they specify the desired schema information by calling the SetSchemaInfo method.

See Also