Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.

Namespace: Aspectize.Core
Assembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
Object ExecuteScalarSQL(
	string sql,
	params Object[] parameters
)
Visual Basic
Function ExecuteScalarSQL ( _
	sql As String, _
	ParamArray parameters As Object() _
) As Object

Parameters

sql
Type: System..::..String
The custom SQL parameterized Query string.
parameters
Type: array<System..::..Object>[]()[][]
The array of parameters to be passed to the command.

Return Value

Value of the first column of the first row.

See Also