ExecuteProcedure (IDatabaseService)

Executes a stored procedure against a database connection, and provides for returning results in either the actual format(s) of the specified parameter(s) or in string format.

In the Configure Method dialog box, click Next to select the connection and procedure. Next, specify whether you want results returned in the actual format(s) of the parameter(s) in question (Return typed values, the default) or string format (Return values as strings), and then click Finish. Your connection and procedure selections determine the specific input parameters for the method, which you configure in the Inputs section of the activity configuration panel.
Note: Beginning with release 2.2 SP1, this method includes a new parameter (ConvertValues) that allows you to specify whether returned values should be automatically converted to string format, as was done in past releases. Prior implementations of this method will continue to function as in the past.
InputsData TypeDescription
ConnectionDirectoryResourceSpecifies the database connection that is used to execute a particular stored procedure.
ProcedureNameStringSpecifies the name identified for a specific procedure.
ConvertValuesBooleanSpecifies whether to convert returned values to string format. Options are as follows:
  • False, to leave returned values in their native data formats (the default).
    Note: In the Configure Method dialog box, this option equates with Return typed values.
  • True, to convert returned values from their native data formats to string format.
    Note: In the Configure Method dialog box, this option equates with Return values as strings.
InputsList<Parameter>Specifies a collection of input parameter values and output parameter initial values that can be passed to a database connection to execute a stored procedure.

OutputsData TypeDescription
ReturnValueStoredProcedureExcutionResultThe execution result, including execution time, collection of output parameter values, and collection of DataTable (Result), of the stored procedure against a particular database.
Note: Data transfer limit: 10 MB.