Data.SqlExpr.TCustomSQLDataSet.PSExecute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PSExecute; override;

C++

virtual void __fastcall PSExecute();

Properties

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

Description

Executes the SQL command associated with the dataset.

Data.SqlExpr.TCustomSQLDataSet.PSExecute inherits from Data.DB.TDataSet.PSExecute. All content below this line refers to Data.DB.TDataSet.PSExecute.

Executes the SQL command associated with the dataset.

The provider component calls PSExecute to implement its Execute method. If the dataset represents a query or stored procedure that does not return a cursor, this method executes the query or stored procedure. If the provider Options include poAllowCommandText and the dataset supports the PSSetCommandText method, the statement specified by PSSetCommandText may be executed instead.

If there is no statement to execute, PSExecute raises an EDatabaseError exception.

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

See Also