Data.Win.ADODB.TADOQuery.Prepared

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TADOQuery

Delphi

property Prepared;

C++

__property Prepared = {default=0};

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