execute scalar return a single value and execute nonquery return only the number of affected rows.
Interviews15 answers
Interviews15 answers
execute scalar return a single value and execute nonquery return only the number of affected rows.
Executenonquery is used to Data Manipulation Language(Insert/update/delete) Operation while ExecuteScaler is used to fetch one object only. like Aggrigation function.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyFeatured eBookClaude for AI-Native BuildersDownload nowAnswer an interview question and earn +10 SHARP for every answer.
See unanswered questions