Element Details: Procedure.SP
 Back


Available in: Logi Info Source code name: Procedure.SP

Runs a database stored procedure.

Define parameters for the SP with an SPParameters element, and an SPParameter element for each.

You can reference the SP's output values with a Procedure token. For example:

@Procedure.myProcedureID.myParameterID~

Use "rdReturnValue" to get the SP's return value.

@Procedure.myProcedureID.rdReturnValue~.

Also returns the first row of a rowset returned. Access the values of the first row with @Procedure tokens.

For example: @Procedure.myProcedureId.someColumnName~



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
Command
UserDefined
(Required) When this is an attribute of Procedure.SP, provide the name of a Stored Procedure that returns a single or no values. Use this element for procedures that execute UPDATEs, INSERTs, and other database actions. When this is an attribute of DataLayer.SP, provide the name of a Stored Procedure that returns a result set of some number of data rows. If working with Oracle Packages, provide the Package name, then a period, then the Procedure name. For example, "myPackage.myProcedure".
ConnectionID
UserDefined
Specifies a connection to a data source that is defined in the Settings. For elements connecting to relational databases, default is the first Connection element in _settings.lgx.
ID
UserDefined
(Required) The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
SPReturnType
ReturnValue
FirstRow
Sets the return type for a Procedure.SP element. "ReturnValue" will return only the first column of the first row (if any). Additional columns or rows are ignored. Access this value with an @Procedure "rdReturnValue" token, for example: @Procedure.myProcedureId.rdReturnValue~ "FirstRow" returns the first row of data returned by the stored procedure. Access the values of the first row with @Procedure tokens. For example: @Procedure.myProcedureId.someColumnName~ "ReturnValue" is the default value for SPReturnType.



PARENT ELEMENTS

Click element to drill down for more information.

If Error
Procedure.Else
Procedure.File Exists
Procedure.Folder Exists
Procedure.If
Procedure.Run Datalayer Rows
Procedure.Run DataTable Rows
Procedure.Switch Case
Procedure.Switch Else
Task


CHILD ELEMENTS

Click element to drill down for more information.

If Error SP Parameters


 Back to top


 Chart Debug