Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • return results as variables for subsequent jobs in a workflow,
  • extract results to a file files in CSV, JSON or XML format.

Prerequisites

The connection to a SQL Server database includes to specify

...

The example makes use of

...

  • The script displays the values of environment variables to which return variables have been mapped.
  • The script for a Unix Windows environment looks like this:

Image RemovedImage Added


The same script used for a Windows Unix environment will look like this:

Image RemovedImage Added

Log Output of Order Execution

...

The example makes use of

...

  • resultset_as_variables: the value csv specifies that a result file will be created in CSV format. The location of the result CSV file is specified from the result_file workflow variable.
    • Specifying the value xml will create a result file in XML format.
    • Specifying the value json will create a result file in JSON format.
  • exec_returns_resultset: the value true specifies that the stored procedure is expected to return a result set.

...

  • The script writes the contents of the resulting CSV file to the stdout channel.
  • The script for a Unix Windows environment looks like this:

Image RemovedImage Added


The same similar script used for a Windows Unix environment will look like this:

Image RemovedImage Added

Log Output of Order Execution

...