Example: Query call to the Rules Engine

Previous Next

Here is an example of a PowerShell script which uses the $USEngine object to execute a database query:

INVOKE USPowershell.ExecuteScript

WITH

SELECT 'Write-Output $USEngine.ExecuteSQLQuery("select table_name from t_table") '

This results in a list of tables, such as:

TABLE_SEQUENCE_NUMBERS

T_EVENT

T_APP_TIME

 

See also

Example: Simple script execution

Example: Script execution with parameters

Example: Stateful test

Example: Dynamically Adding C#

Example: Converting Word to PDF

Example: Manipulation call to the Rules Engine

Example: Call to the Rules Engine with variables

Example: Query call to the Rules Engine and loop through result

USPowerShell