Top Previous Next

Executes the choosen operation on the server.


function Execute: Boolean; overload;
procedure Execute(Operation: TPSQLOperation); overload;


Call Execute to execute a chosen operation on the server. Before calling Execute, provide kind of operation to execute by assigning value to Operation property if function is used.

If the operation fails, Execute function returns False.

Unlike function procedure Execute will throw an exception if some error occurred.

If an application is interested in the events occurred after operation is done, write OnSuccess and OnError handlers. OnError event fires only if call to function is made. In case of procedure call use try...except block for additional information.

See also: OnError, OnSuccess, Operation