SQL Stored Procedure

The SQL Stored Procedure action allows you to invoke a stored procedure on a remote Microsoft SQL Server or Azure SQL instance.

InputOutput
Any (`JSON`)Any (`JSON`) (Passthrough) and Response Data (`object`) (Optional)

Compatibility

  • Microsoft SQL Server 2016 and newer
  • Azure SQL

Features and limitations

FeatureLimitations?
SQL Login AuthenticationNo
Windows or Microsoft Entra ID AuthenticationYes
Execute standard and encrypted stored proceduresNo
Pass parametersNo
Pass or retrieve `OUTPUT` parametersYes
Pass table-valued parametersYes
Read log output (via `RAISERROR` or similar)Yes
Read result sets (includes support for multiple result sets)No
Read the return code emitted by the `RETURN` statementNo

Networking and firewall considerations

In order for the stored procedure to be called, the iWorkflow engine environment needs to be able to connect to the target SQL Server.

See Whitelisting the IP for Power Suite products for a list of IPs.

Properties

NameTypeTemplatableNotes
HostTextNoThe hostname or IP address of the SQL Server. If using a DNS name, the name must be able to be resolved publicly.
PortNumberNoThe SQL server port number. Defaults to the standard SQL port of 1433. Do not modify unless you are certain that your SQL server runs on a non-standard port.
DatabaseTextNoThe name of the database (or β€œInitial Catalog”) to connect to.
UsernameTextNoThe username to authenticate with.
PasswordTextNoThe password to authenticate with.
Procedure NameTextNoThe name of the stored procedure. Do not include `EXEC` or any parameters.
ParametersListYesSpecify the parameters to pass to the stored procedure. Ensure the parameter names match the procedure definition exactly, including casing. All required parameters must be specified or the action will fail.
Timeout (minutes)NumberNoSpecify the number of minutes to wait for the procedure to execute, between 1 and 60. Defaults to 5 minutes.
Use Transaction Coming SoonCheckboxNoSpecifies whether or not to wrap the procedure execution inside a transaction.
Output PropertyTextNoSpecify the name of the property to store the output data of the stored procedure. The output schema is as follows, if for example the output property is named `mySp`: β€œmySp”: {β€œreturnValue”: 0, β€œdata”: [ [ { β€œColumn1”: β€œValue 1”, β€œColumn2”: β€œValue 2” }, { β€œColumn1”: β€œValue 3”, β€œColumn2”: β€œValue 4” } ], [ { β€œT2Column1”: β€œTable 2 / Value 1”, β€œT2Column2”: β€œTable 2 / Value 2” }, { β€œT2Column1”: β€œTable 2 / Value 3”, β€œT2Column2”: β€œTable 2 / Value 4” } ] ]}

Did this page help you?