What is the difference between ExecuteReader,ExecuteNonQuery
and ExecuteScalar.
Answer Posted / divya sharma
Execute Non Query- its for manipulation
(insert,delete,update),returns number of rows affected.
Execute Reader- accesses data in read only,forward only way
(perform commands such as select).
Execute scalar- returns only one value i.e. 1st row,1st
column, after execution of query.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
Is it possible to migrate visual interdev design-time controls to asp.net?
What is a web api? Which protocol is used in a web api?
Explain the role of global.asax?
What is Bundling and Minification in MVC?
What is session management in web application?
What is active web pages?
Where can I get information on cookies in asp.net?
What is clickid?
What is advantage of asp.net?
What is manifest in .net framework?
What is http request and response?
How to reduce the width of textbox in editcommandcolumn of datagrid?
Define repository pattern in asp.net mvc? : asp.net mvc
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?