DataAccessExecuteScalar Method (String, Hashtable) |
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: 9.0.3.0 (9.0.3.20240719)
Syntax public Object ExecuteScalar(
string sqlQuery,
Hashtable parameters
)
Public Function ExecuteScalar (
sqlQuery As String,
parameters As Hashtable
) As Object
Parameters
- sqlQuery
- Type: SystemString
A SQL statement to execute - parameters
- Type: System.CollectionsHashtable
A parameters collection
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