If the SQL statement returns a value, the value will be stored in the variable's optional parameters that were defined.
The values set by the function are based on the SQL statement's returned value. For example, a ‘Select count(*)’ statement will return a Numeric value.
If there is an error in the syntax, the function is ignored.
If the result contains multiple rows, only the values from the first row are returned.
If additional parameters were provided (more than the result columns), the redundant variables will be cleared (updated with NULL or the default value, according to the variable).
This is a client-side function that is only available for Rich Client tasks. To use the server-side version of this function in Rich Client tasks, see SQLExecute.
|