Data.Win.ADODB.TADOQuery.Prepared

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Prepared: Boolean read GetPrepared write SetPrepared default 0;

C++

__property Prepared = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TADOQuery

Description

Specifies whether the command is prepared before execution.

Data.Win.ADODB.TADOQuery.Prepared inherits from Data.Win.ADODB.TCustomADODataSet.Prepared. All content below this line refers to Data.Win.ADODB.TCustomADODataSet.Prepared.

Specifies whether the command is prepared before execution.

Set Prepared before calling the Open method to specify whether ADO prepares the command used to create the dataset’s recordset.

If Prepared is set to True and the dataset component is connected to a data store, ADO prepares the command before executing it. This implies keeping the parameters' part of the query command in a separate buffer for fast future access, avoiding the insertion of the query parameters into the command each time.

If Prepared is set to False, ADO does not prepare the command.

The default value of Prepared is False.

See Also

Code Examples