Contents Index ExecuteReader method Parameters property

ASA Programming Guide
  Adaptive Server Anywhere .NET Data Provider API Reference
    AsaCommand class

ExecuteScalar method


Description 

Executes a statement that returns a single value. If this method is called on a query that returns multiple rows and columns, only the first column of the first row is returned.

Syntax 

object ExecuteScalar( )

Return Value 

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

Implements 

IDbCommand.ExecuteScalar


Contents Index ExecuteReader method Parameters property