Executes a select query using the given ConnectionName (or the default connection it omitted) and stores the result into a global ResultSetName.
executeQuery(query, resultName[, datasource])
string query - The query to execute.
string resultName - The name of the global result set.
string datasource - Optional. The name of the database connection.
int - The number of rows in the returned table.