Native
Synchronous
No Custom Parameters
ExecuteScalar retrieves the first row and first column data field of the specified query.
ExecuteScalar requires that a named database connection already be open, which can done either by using OpenDatabase or by using the name of a database resource associated with the Cisco Unified Application Designer application.
The ExecuteScalar will fail if at least one row is not returned. If it is at all possible that 0 rows are returned by the specified Query, then ExecuteQuery should be used instead and the results parsed appropriately.
| Parameter Name | .NET Type | Default | Description |
|---|---|---|---|
| Query * | System.String | A SQL SELECT statement designed to return at least one row and one column. | |
| Name * | System.String | The name of the database connection to query. |
| Parameter Name | .NET Type | Description |
|---|---|---|
| Scalar | System.Object | The first row and column field. |
Branch Conditions
No description.
No description.