Data.DB.TDataSet.PSExecute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PSExecute; virtual;

C++

virtual void __fastcall PSExecute();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Data.DB.pas
Data.DB.hpp
Data.DB TDataSet

Description

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