FireDAC.Comp.Script.TFDScript.ValidateAll

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
FireDAC.Comp.Script.pas
FireDAC.Comp.Script.hpp
Unit: FireDAC.Comp.Script
Parent: TFDScript

Delphi

function ValidateAll(AParser: TFDScriptParser): Boolean; overload;
function ValidateAll: Boolean; overload;

C++

bool __fastcall ValidateAll(TFDScriptParser* AParser)/* overload */;
bool __fastcall ValidateAll()/* overload */;

Description

Validates the SQL script.

Call the ValidateAll method to validate the SQL script.

The ValidateAll method does not execute SQL commands and does not execute many of the script control commands. This method checks the syntax of the next control command and executes it, if that is required to continue with the checking. Also, the ValidateAll method updates the indicator of the total job volume - TotalJobSize, which is required to show the correct work progress values.

It is good practice to call the ValidateAll method before the ExecuteAll method.

See Also