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.
Inputs | Data Type | Description |
---|---|---|
Connection | DirectoryResource | Specifies the database connection that is used to execute a particular stored procedure. |
ProcedureName | String | Specifies the name identified for a specific procedure. |
ConvertValues | Boolean | Specifies whether to convert returned values to string format. Options are as follows:
|
Inputs | List<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. |
Outputs | Data Type | Description |
---|---|---|
ReturnValue | StoredProcedureExcutionResult | The 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. |