hi friend i am having one doubt in dotnet so if anyone can able to help pls
this is my doubt
What is the purpose of Execute scalar method of Command object ?
Hi John,
The “ExecuteScalar” method is used to retrieve a single value from the database. This requires less code than using the “ExecuteReader” method which is used to generate a single value through data returned by SqlDataReader. The method is fast and utilizes less resources from the database.