RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IProviderSupport.PSExecute Method

Executes the SQL command associated with the dataset.

Pascal
procedure PSExecute;
C++
__fastcall PSExecute();

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 includes poAllowCommandText and the dataset supports the PSSetCommandText method, the statement specified by PSSetCommandText may be executed instead. 

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

 

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