The SQL Check Action object can be used to check data queries in the database, to ensure that data integrity and ensure that results are returned as expected.
Metadata tab
The Write Variables option ensures that the “Package Action” logs the variable values into the “Action vars before log file” before the action is executed and logs the updated variable values into the “Action vars after log file” after the action completes.
This option is typically used for debugging and is not recommended in a production environment.
It can be globally disabled through the
options dialog
.
Parameters tab
Tips
The “Replace Variables” parameter is used to substitute variables within SQL statements.
When the “UseEmbeddedSQL” is set to True EmbeddedSQL is used, otherwise SQL Script/Lookup is used.
Selecting Script
Editing Script
Selecting Connection
Variables tab
The Variables tab defines the variables to be updated during the action’s execution.
Tip: double click on the variable name to disable/enable it
date: 2026-06-21
Execution log tab
The Execution log tab is populated after the action is executed. Double click on the row to view the log.
Example
SQL Data Check uses SQL scripts to check data in the database.
For example, the user may write the following SQL:
Selectcount(*)fromtable
Execution is successful if the value of the first field of lookup query is more than 0
Execution fails if the value of the first field of lookup query is equals to 0 or less than 0 or field type is not numeric.
Calculated parameters example
Pascal
Script
begin
if DayOfWeek(Now)=3 then
begin
Result:=1917;
end
else
begin
Result:=1968;
end;
end;