FireDAC.Comp.Script.TFDScript.ExecuteFile
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: FireDAC.Comp.Script.pas FireDAC.Comp.Script.hpp
| |
Unit: FireDAC.Comp.Script | |
Parent: TFDScript |
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 System::NativeInt AArguments_High)/* overload */;
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;