Calling convention: CIP_TSQL("DBName": String, "SQLScript": String; HasResult:Boolean): Variant
Description: Executes an SQL script through the same common executor as CIP_SQL. Named parameters are resolved from the current DBForm and parser/runtime variable scopes.
Parameters:
DBName: connection name; an empty string selects the current connection.
SQLScript: SQL script text.
HasResult: optional execution hint. True opens a result set; False executes without one.
Returns: Variant: normally the first column of the first row; NULL for an empty result or execute-only script. In an array-valued expression context, returns the first column as a Variant array.
Availability: Default; the selected connection must be visible to the current user.
Example:
Result := CIP_TSQL("", "SELECT COUNT(*) FROM OEE_USER", True);