Data.Win.ADODB.TADOConnection.Execute

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TADOConnection

Delphi

procedure Execute(const CommandText: WideString; var RecordsAffected: Integer;
const ExecuteOptions: TExecuteOptions = [eoExecuteNoRecords]); overload;
function Execute(const CommandText: WideString;
const CommandType: TCommandType = cmdText; const ExecuteOptions: TExecuteOptions = []): _Recordset; overload;

C++

void __fastcall Execute(const System::WideString CommandText, int &RecordsAffected, const TExecuteOptions ExecuteOptions = (TExecuteOptions() << TExecuteOption::eoExecuteNoRecords ))/* overload */;
Winapi::Adoint::_di__Recordset __fastcall Execute(const System::WideString CommandText, const TCommandType CommandType = (TCommandType)(0x1), const TExecuteOptions ExecuteOptions = TExecuteOptions() )/* overload */;

Description

Executes a command.

Call Execute to execute a command using the ADO connection object.

CommandText is the command to execute.

RecordsAffected indicates the number of records, if the command operates on data, that are affected by the command after execution.

ExecuteOptions is a TExecuteOptions parameter that specifies the characteristics of the command execution.

Execute returns a recordset if the command executed is one that generates a recordset.

See Also