From RAD Studio API Documentation
Jump to: navigation, search


function PSIsSQLBased: Boolean; virtual;


virtual bool __fastcall PSIsSQLBased();


Type Visibility Source Unit Parent
function protected
Data.DB TDataSet


Indicates whether the dataset includes native SQL support.

The provider calls PSIsSQLBased to determine whether the dataset supports some form of native SQL. This information is used when generating SQL commands that are executed by PSExecuteStatement.

Even if the dataset is not SQL-based, it may still allow the provider to execute SQL statements for applying updates. However, table and field names are not specified in the same way for the local SQL engine as they are for native SQL. The provider uses PSIsSQLBased to determine how these names should appear in generated SQL.

This method is an implementation of the IProviderSupport.PSIsSQLBased method and, by default, returns False, because TDataSet does not implement a provider by default. To use it, every TDataSet descendant must override it in its specific way.

See Also