DatabaseExecuteScalar Method (String, String, Int32) |
Execute a scalar SQL statement (a statement that returns a single item).
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public Object ExecuteScalar(
string sql,
string logSource,
int commandTimeout
)
Public Function ExecuteScalar (
sql As String,
logSource As String,
commandTimeout As Integer
) As Object
Parameters
- sql
- Type: SystemString
The SQL to execute. - logSource
- Type: SystemString
The source of the operation, to be logged to the devlog. - commandTimeout
- Type: SystemInt32
The command timeout in seconds (overriding system default).
Return Value
Type:
ObjectThe resulting item, if any.
Implements
IDatabaseExecuteScalar(String, String, Int32)See Also