FireDAC.Comp.Script.TFDScript.ExecuteFile
Delphi
procedure ExecuteFile(const AFileName: String); overload;
procedure ExecuteFile(const AFileName: String; const AArguments: array of String); overload;
C++
void __fastcall ExecuteFile(const System::UnicodeString AFileName)/* overload */;
void __fastcall ExecuteFile(const System::UnicodeString AFileName, 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 the specified SQL script file according to the specified arguments.
Parameters | Description |
---|---|
const AFileName: String |
An SQL script file to execute. |
const AArguments: array of String |
The script arguments. |
Use the ExecuteFile method to execute the specifed SQL script file according to the specified arguments. This method is a shortcut for the following pseudocode:
Arguments := AArguments; SQLScripts.Clear; SQLScriptFileName := AFileName; ValidateAll; ExecuteAll;