What is the use of ExecuteScalar() associated with command object.
used for retrieving multiple records from a data source.
use for retrieving a single scalar
value from a datasource.
Used for performing dml operations against a data source and retrieves the number of records affected count.
None of the options are correct.
ExcuteScalar is used when we want to get a sinlge output from the data sources.
Back To Top