What is the ExecuteScalar method?

Submitted by: Administrator
// Summary:

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.

// Returns:

The first column of the first row in the result set, or a null reference (Nothing in Visual Basic) if the result set is empty.
Submitted by: Administrator

Read Online ADO.NET Job Interview Questions And Answers