Advanced.Data.Provider Documentation

AdpCommand.ExecuteScalar Method 

[This is preliminary documentation and subject to change.]

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]
NotOverridable Public Function ExecuteScalar() As Object Implements _
   IDbCommand.ExecuteScalar
[C#]
public object ExecuteScalar();

Return Value

The first column of the first row in the result set returned by the query. Extra columns or rows are ignored.

Implements

IDbCommand.ExecuteScalar

See Also

AdpCommand Class | Advanced.Data.Provider Namespace