ExecuteScalar is used while working with SqlCommand it returns a single value - ADO.NET
Q. In a SQL Statement while working with SqlCommand it returns a single value, at that time which method of Command Object will be used? - Published on 28 Jul 15a. ExecuteNonQuery
b. ExecuteReader
c. ExecuteScalar
d. All of the above
ANSWER: ExecuteScalar