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
Give 2 examples for scenarios when routing is not applied?
What is asp net objects?
How does output caching work in ASP.NET?
Is it possible to apply themes to an asp.net application? If yes, then how?
What is gridview in asp.net?
Explain the difference between dataset and datareader.
calling result set one procedure to anothar procedure in sql2000
What is a gridview in asp.net?
Can you explain the basic use of dataview?
What are html helpers in asp.net?
What is an asp.net validator? And, mention its types.
explain code with multi inhertance
What is mvc in angular?
What is Web API?
What are the namespaces used in asp.net mvc? : asp.net mvc