RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSQLDataSet.SchemaInfo Property

Identifies the metadata with which to populate the dataset.

Pascal
property SchemaInfo: TSQLSchemaInfo;
C++
__property TSQLSchemaInfo SchemaInfo;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!