◷ Reading Time: 1 minute
Summary
This command can be used when you wish to run a query command result (or more likely a stored procedure) that returns data.
Parameters
- command
- Description: The TSQL command that returns a single cell column value
- Mandatory: Yes
- Type: String
- return
- Description: Name of the variable in which the row will be stored
- Mandatory: Yes
- Type: String
- storedProcedure
- Description: Determines whether the command should execute a stored procedure in the database
- Mandatory: False
- Type: Boolean (true/false)
Internal Commands
Param
Sample
<Database connection-ref="cnn" type="MsSql"> <ExecuteScalar command="SELECT count(*) from person" return="count"/> </Database>