FireDAC.Comp.Script.TFDScript.ExecuteScript

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ExecuteScript(const AScript: TStrings); overload;
procedure ExecuteScript(const AScript: TStrings; const AArguments: array of String); overload;

C++

void __fastcall ExecuteScript(System::Classes::TStrings* const AScript)/* overload */;
void __fastcall ExecuteScript(System::Classes::TStrings* const AScript, const System::UnicodeString *AArguments, const int AArguments_High)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.Script.pas
FireDAC.Comp.Script.hpp
FireDAC.Comp.Script TFDScript

Description

Executes an SQL script contained in the string list according to the specified arguments.

Parameters Description

const AScript: TStrings

A string list with an SQL script to execute.

const AArguments: array of String

The script arguments.

Use the ExecuteScript method to execute an SQL script contained in the string list. This method is a shortcut for the following pseudocode:

Arguments := AArguments;
SQLScripts.Clear;
SQLScripts.Add.SQL := AScript;
SQLScriptFileName := '';
ValidateAll;
ExecuteAll;

See Also