Data.SqlExpr.TSQLStoredProc.PrepareStatement

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PrepareStatement; override;

C++

virtual void __fastcall PrepareStatement();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLStoredProc

Description

Prepares the stored procedure for execution.

PrepareStatement performs most of the necessary tasks for preparing a stored procedure to be executed on the server. It ensures that dbExpress and the database server have allocated any resources they need for executing the stored procedure and binding its parameters.

Do not call PrepareStatement when preparing a stored procedure for execution. Instead, set the Prepared property to true. When you use the Prepared property instead, the stored procedure component keeps track of the fact that it has already been prepared and need not repeat the process every time it executes. In addition, when you set the Prepared property, the component initializes internal properties that keep track of the number of rows affected by the stored procedure.

See Also