FreeFlow class library

Server.ExecuteScalar Method 

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.

[Visual Basic]
Public Function ExecuteScalar( _
   ByVal sql As String _
) As Object
[C#]
public object ExecuteScalar(
   string sql
);

Parameters

sql
The SQL to execute.

Return Value

The first column of the first row in the result set, or a null reference if the result set is empty.

See Also

Server Class | FreeFlow.Administration Namespace