API:Data.Win.ADODB.TCustomADODataSet.PSIsSQLSupported
Delphi
function PSIsSQLSupported: Boolean; override;
C++
virtual bool __fastcall PSIsSQLSupported();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TCustomADODataSet |
Description
Indicates whether the dataset can execute SQL statements.
Data.Win.ADODB.TCustomADODataSet.PSIsSQLSupported inherits from Data.DB.TDataSet.PSIsSQLSupported. All content below this line refers to Data.DB.TDataSet.PSIsSQLSupported.
Indicates whether the dataset can execute SQL statements.
PSIsSQLSupported indicates whether the provider can call PSExecuteStatement to execute an SQL statement. When PSIsSQLSupported returns False, calling PSExecuteStatement generates an exception. The provider can still work with a dataset that returns False from PSIsSQLSupported, but it must set the ResolveToDataSet property to True, or provide data on a read-only basis.
This method is an implementation of the IProviderSupport.PSIsSQLSupported 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.