What is the difference between ExecuteReader,ExecuteNonQuery
and ExecuteScalar.
Answer Posted / rajesh
Execute Reader: it executes the command and returns the result
set of the command
Execute NonQuery: it executes the command and returns the
number of rows affected
Execute Scalar: it executes the command and returns only
first row first column value
| Is This Answer Correct ? | 46 Yes | 8 No |
Post New Answer View All Answers
What’s the difference between asp.net web forms and asp.net mvc?
Why we are using mvc instead of asp.net? : Asp.Net MVC
How to rename a table using sql queries?
What is the asp.net mvc folder conventions? : asp.net mvc
What is Web Server Control Templates.?
What does asp stand for in asp.net?
What are Master Pages in ASP.NET?
List the asp.net validation controls?
What is http post action?
Is asp.net different from asp? If yes, explain how?
Can you change a master page dynamically at runtime? How?
Define a web service in .net?
Why session is necessary in web application?
how to elimainte the similar data from the different tables
What is the function used for removing an event listener?