DataAccessExecuteScalar Method (String, Object) |
Executes the query, and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored
Namespace:
WorkflowGen.My.Data
Assembly:
WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax public Object ExecuteScalar(
string sqlQuery,
Object defaultValue
)
Public Function ExecuteScalar (
sqlQuery As String,
defaultValue As Object
) As Object
Parameters
- sqlQuery
- Type: SystemString
A SQL statement to execute - defaultValue
- Type: SystemObject
A default value returned if the result is null
Return Value
Type:
ObjectThe first column of the first row in the result set, or a null reference if the result set is empty
See Also